What types of conditions can be used for conditional compilation in C++?
Posted
by
user1002288
on Stack Overflow
See other posts from Stack Overflow
or by user1002288
Published on 2011-11-12T01:40:29Z
Indexed on
2011/11/12
1:51 UTC
Read the original article
Hit count: 149
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 thesizeof()
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?
© Stack Overflow or respective owner