What types of conditions can be used for conditional compilation in C++?
- by user1002288
This is an exam question for C++:
Which of the following statements accurately describe the condition that can be used for conditional compilation in C++?
A. The condition can depend on the value of environment variables.
B. The condition can depend on the value of any const variables.
C. The condition can depend on the value of program variables.
D. The condition can use the sizeof() operator to make decision about compiler-dependent operations based on the size of standard data type.
E. The condition must evaluate to either a 0 or 1 during preprocessing.
I think the answer is E. Is this correct?