C Preprocessors

  • C Preprocessor is a program which will executed automatically before passing the source program to compiler.
  • Preprocessing is under control of preprocessor directives.
  • All preprocessor directives are satrs with pound(#) sign symbol and should be not ended with(;).
  • When we are working with preprocessor directives it can place anywhere in the program, but generally recommended to place top of the program before defining the first function.

In C Language Preprocessor directives are classified into 4 types:

  1. Macro substitution directives
  2. File inclusion directives
  3. Conditional compilation directives
  4. miscellaneous directives
Powered by k2schools