The preprocessor directive which checks whether a constant expression results in a zero or non-zero value __________

The preprocessor directive which checks whether a constant expression results in a zero or non-zero value __________
A. #if
B. #ifdef
C. #undef
D. #ifndef
 
Answer: a
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.
 

Tìm kiếm

Back
Top