#if or #elif can be used to evaluate ____________

Options
- Constant expressions
- Macro expressions
- Both a and b


CORRECT ANSWER : Both a and b

Discussion Board
C++ - #if or elif

The above answer is true. #if or #elif can be used to evaluate constant expressions and macro expressions. The #if directive checks whether the constant-expression is true (nonzero). The constant expression in an #if directive is subject to text replacement and can contain references to identifiers defined in previous #define directives. The #elif directive performs a task similar to the combined use of the else-if statements in C. The #if directive, with the #elif, #else, and #endif directives, controls the compilation of portions of a source file.

Prajakta Pandit 01-25-2017 01:32 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement