1.

The preprocessor directive which checks whether a constant expression results in a zero or non-zero value __________(a) #if(b) #ifdef(c) #undef(d) #ifndefI had been asked this question by my college director while I was bunking the class.I want to ask this question from Conditional Preprocessor Directives topic in section C Preprocessor of C

Answer» CORRECT choice is (a) #if

The best explanation: #if checks whether a constant expression RESULTS in ZERO or not. If the expression is a non-zero value, then the statements between #if and #ENDIF will be executed.If the constant expression results in a zero value, the statements between #if and #endif will not be executed.


Discussion

No Comment Found

Related InterviewSolutions