Question
Which of the following are correct preprocessor directives in C?
1: #ifdef
2: #if
3:#elif
4:#undef
Answer: Option D
Was this answer helpful ?
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.
Was this answer helpful ?
Submit Solution