Quiz on Macros and the C Preprocessor

Tests your understanding about macros and the C preprocessor.

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

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy