Preprocessors
- For each #if, #ifdef, and #ifndef directive.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
Zero or one #else directive.
There are zero or more #elif directives.
One matching #endif directive.
- The #elif directive cannot appear after the preprocessor #else directive.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: E
Can appear after the preprocessor #else directive.
- Conditional inclusion can be used for ___________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
Check for existence of a variable and doing something if it exists.
Preventing multiple declarations of same function.
Preventing multiple declarations of a variable.
- In a conditional inclusion, if the condition that comes after the if is true, then what will happen during compilation?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
Then the code up to the following #else or #elif or #endif is compiled
- Which of the following sequences are unaccepted in C language?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
#if
#if
#endif