FAQ Part 12: Preprocessor and Compilation

What is the role of the preprocessor?

The preprocessor handles directives like:

  • #include
  • #define
  • #ifdef / #endif

What is the compilation process in C++?

  1. Preprocessing
  2. Compilation
  3. Assembly
  4. Linking