Sail E0 Webinar
Question

Which of the following are correct preprocessor directives in C?
1:  #ifdef
2:  #if
3:#elif
4:#undef


Options:
A .  1, 2
B .  4
C .  1, 2, 4
D .  1, 2, 3, 4
Answer: Option D

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 ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers