C Language INTERVIEW QUESTION & ANSWERS
111. |
What is structures? |
|
In C, a structure is a derived data type consisting of a collection of member elements and their data types. Thus, a variable of a structure type is the name of a group of one or more members which may or may not be of the same data type. In programming terminology, a structure data type is referred to as a record data type and the members are called fields. |
112. |
What are register variables? |
|
If a variable is declared with a register storage class, it is known as register variable.The register variable is stored in the cpu register instead of main memory. Frequently used variables are declared as register variable as it’s access time is faster. |
113. |
What is a symbolic constant? |
|
- A symbolic constant is a name that substitutes for a sequence of characters. The characters may be a numeric constant, a character constant or a string constant.
- A symbolic constant allows a name to appear in place of a numeric constant, a character constant or a string.
- Symbolic constants are usually defined at the beginning of a C program. The symbolic constants may then appear later in the program in place of the numeric constants, character constants, and so on.
|
114. |
What are the types of keywords supported by ANSI C? |
|
There are 32 keywords supported by ANSI C : - Auto
- Double
- Int
- Struct
- Break
- Else
- Long
- Switch
|
115. |
What is an union? |
|
The union is a construct that allows memory to be shared by different types of data. It can store objects of different types at different times; however at any given moment it stores an object of only one of the specified types. |