The C Preprocessor is a translation phase that processes the source code before the compiler. It is a text substitution tool separate from the compiler and provides its own powerful language for programmers. Preprocessor directives start with the symbol #. The preprocessor simplifies program development, readability, and modification, and makes C code portable across different architectures.
The preprocessor performs three main functions:
The syntax of the preprocessor differs from the rest of the C program, and while it is primarily designed for C, it can be useful in other programming languages as well.
Objective:
After going through this unit, you will be able to: