Quiz on Macros and the C Preprocessor
Test your understanding of macros and the C preprocessor.
We'll cover the following...
1
Which statement is not true about #define?
A)
#define YES 1 assigns a symbolic name to program constant.
B)
The #define directives can appear anywhere in the program.
C)
A #define directive is similar to variable assignment.
D)
The preprocessor replaces each use of a macro defined using a #define directive with the contents of that macro before the program is compiled.
Question 1 of 40 attempted
Ask