What does preprocessor directive #if and #endif explains?
A. Enables compilation of sequence of code on condition basis
B. Express results into true or false on evaluation of condition
C. if expression following #if is true then code that is between #if and #endif is compiled otherwise skipped
D. All of the mentioned
Answer:A
What does preprocessor directive #if and #endif explains?
A. Enables compilation of sequence of code on condition basis B. Express results into true or false on evaluation of condition C. if expression following #if is true then code that is between #if and #endif is compiled otherwise skipped D. All of the mentioned
Explanation: The #if and #endif directives enable conditional compilation of a sequence of code based upon whether an expression involving one or more symbols evaluates to true. A symbol is true if it has been defined. It is false otherwise.If the expression following #if is true, the code that is between it and #endif is compiled.Otherwise, the intervening code is skipped. The #endif directive marks the end of an #if block.