Question-21. What is a nested structure ?

Answer- A structure containing an element of another structure as its member is referred so.

 

Question-22. What is the difference between variable declaration and variable definition ?

Answer- Declaration associates type to the variable whereas definition gives the value to the variable.

 

Question-23. What is a self-referential structure ?

Answer- A structure containing the same structure pointer variable as its element is called as self-referential structure.

 

Question-24. Does a built-in header file contains built-in function definition ?

Answer- No, the header file only declares function. The definition is in library which is linked by the linker.

 

Question-25. Explain modular programming ?

Answer- Dividing the program in to sub programs (modules/function) to achieve the given task is modular approach. More generic functions definition gives the ability to re-use the functions, such as built-in library functions.

 

Question-26. What is a token ?

Answer- A C program consists of various tokens and a token is either a keyword, an identifier, a constant, a string literal, or a symbol.

 

Question-27. What is a preprocessor ?

Answer- Preprocessor is a directive to the compiler to perform certain things before the actual compilation process begins.

 

Question-28. Explain the use of %i format specifier w.r.t scanf() ?

Answer- Can be used to input integer in all the supported format.

 

Question-29. How can you print a \ (backslash) using any of the printf() family of functions ?

Answer- Escape it using \ (backslash).

 

Question-30. Does a break is required by default case in switch statement ?

Answer- Yes, if it is not appearing as the last case and if we do not want the control to flow to the following case after default if any.