1.

_______________ is the preprocessor directive which is used to end the scope of #ifdef.(a) #elif(b) #ifndef(c) #endif(d) #ifI got this question during an interview.This intriguing question originated from Conditional Preprocessor Directives topic in chapter C Preprocessor of C

Answer»

Correct option is (c) #endif

To explain: The #ifdef PREPROCESSOR directive is used to CHECK if a particular identifier is currently defined or not.If the particular identifier is defined, the statements FOLLOWING this preprocessor directive are executed TILL another preprocessor directive #endif is encountered. #endif is used to end the scope of #ifdef.



Discussion

No Comment Found

Related InterviewSolutions