C Language INTERVIEW QUESTION & ANSWERS
101. |
How are the two dimensional array elements stored in memory? |
|
Two dimensional arrays follow row major order storage representation .The elements are stored in row by row in the subsequent memory locations. |
102. |
What is the value of sizeof (char)? |
|
The value returned by sizeof (char) is always 1 since char uses only one byte in any machine. For other data types, the number of bytes used to represent a data type depends on the implementation of a compiler. |
103. |
What is an operands? |
|
The operators can be defined as symbols which specify operations to be performed. The C language includes a number of operators. These operators are used in different combinations to form expressions. The data items on which the operators act upon are known as operands. |
104. |
What is the difference between switch and if else? |
|
The switch expression may be any integral type only but the condition in. if–else–if ladder may be designed with arithmetic, boolean or user defined data items. |
105. |
What are the types of looping structures? |
|
C provides three looping structures. They are
- The While loop
- The do while loop
- The for loop
|