C Programming - C Preprocessor
Exercise : C Preprocessor - Point Out Correct Statements
- C Preprocessor - General Questions
- C Preprocessor - Find Output of Program
- C Preprocessor - Point Out Errors
- C Preprocessor - Point Out Correct Statements
- C Preprocessor - True / False Questions
- C Preprocessor - Yes / No Questions
1.
Which of the following are correct preprocessor directives in C?
1: | #ifdef |
2: | #if |
3: | #elif |
4: | #undef |
Answer: Option
Explanation:
The macros #ifdef #if #elif are called conditional macros.
The macro #undef undefine the previosly declared macro symbol.
Hence all the given statements are macro preprocessor directives.
2.
Which of the following are correctly formed #define statements in C?
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers