As is clear from the name, preprocessor directives are the processes undertaken before the actual compilation starts. In other words, these preprocessors give instructions to the compiler to preprocess the information, and this works before the compiler compiles the code.
There are the following points to note for preprocessors while you're working with them:
- Preprocessor directives are actually conditions for the compiler
- Preprocessor directives must start with the
#
symbol - Preprocessor directives should not be terminated with a semi colon (
;
) like a statement terminates - Preprocessors are not used to create macros
- Preprocessors should be declared line by line