C Preprocessor

The C preprocessor or cpp is the macro preprocessor for the C and C++ computer programming languages. The preprocessor provides the ability for the inclusion of header files, macro expansions, conditional compilation, and line control.

In many C implementations, it is a separate program invoked by the compiler as the first part of translation.

The language of preprocessor directives is agnostic to the grammar of C, so the C preprocessor can also be used independently to process other kinds of text files.

Read more about C PreprocessorPhases

Other articles related to "c preprocessor, preprocessor, preprocessors":

C Preprocessor - Uses - As A General-purpose Preprocessor (GPP)
... Since the C preprocessor can be invoked independently to process files other than those containing to-be-compiled source code, it can also be used as a "general ... C, C++ and Objective-C in the documentation of its implementation of the preprocessor ... However, since the C preprocessor does not have features of some other preprocessors, such as recursive macros, selective expansion according to quoting, string ...
Lexical Preprocessors - C Preprocessor
... The most common example of this is the C preprocessor, which takes lines beginning with '#' as directives ...