Multiple choice

#define MAX_NUM 15 Referring to the sample above, what is MAX_NUM?

  1. MAX_NUM is an integer variable.

  2. MAX_NUM is a linker constant.

  3. MAX_NUM is a precompiler constant.

  4. MAX_NUM is a preprocessor macro.

  5. MAX_NUM is an integer constant.

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

#define creates a preprocessor macro, not a variable or constant. The preprocessor replaces MAX_NUM with 15 before compilation. It's not stored as a variable in memory - it's textual substitution. Preprocessor macros are different from const variables (which are actually stored) and linker constants.