What is a Pre-Processor in C ?
In C programming, a pre-processor is a program or a part of the compiler that processes the source code before actual compilation. It handles directives beginning with a hash symbol (#) and performs various tasks such as including header files, macro substitution, conditional compilation, and file inclusion.
The primary purpose of a pre-processor is to prepare the source code for compilation by the actual compiler. It doesn't understand the syntax of the C language but acts on instructions provided through preprocessor directives. Some common preprocessor directives include: