Skip to content

Preprocessor, const, static, and enum

Handout

What runs before the compiler

  • Before the compiler sees your code, the preprocessor handles every line that starts with #.
  • It pastes in headers, replaces macros, and removes comments — a simple text step.
  • You have used it already: #include <stdio.h> is a preprocessor command.

The preprocessor expands #include and #define into plain code, then the compiler runs

Handout

Log in or create account

IGCSE & A-Level