2. | What are the types of linkages? | |||||||
Answer: Option B
Explanation: External Linkage-> means global, non-static variables and functions. Internal Linkage-> means static variables and functions with file scope. None Linkage-> means Local variables. |
3. | Which of the following special symbol allowed in a variable name? | |||||||
Answer: Option D
Explanation: Variable names in C are made up of letters (upper and lower case) and digits. The underscore character ("_") is also permitted. Names must not begin with a digit. Examples of valid (but not very descriptive) C variable names: => foo => Bar => BAZ => foo_bar => _foo42 => _ => QuUx |
4. | Is there any difference between following declarations?
|
|||||||
Answer: Option B
Explanation: extern int fun(); declaration in C is to indicate the existence of a global function and it is defined externally to the current module or in another file. int fun(); declaration in C is to indicate the existence of a function inside the current module or in the same file. |
5. | How would you round off a value from 1.66 to 2.0? | |||||||
Answer: Option A
Explanation:
|
No comments:
Post a Comment