Interviews Questions, Algorithms, Aptitude, C Interview Program, C Theory Question, Aptitude Tricks, Test Series,

Saturday 1 June 2019

C Preprocessor Directives

The C preprocessor is a microprocessor that is used by the compiler to transform your code before compilation. It is called micro preprocessor because it allows us to add macros.

Note: Proprocessor direcives are executed before compilation.

All preprocessor directives starts with hash # symbol.

Let's see a list of preprocessor directives.


    C preprocessor
  • #include

  • #define

  • #undef

  • #ifdef

  • #ifndef

  • #if

  • #else

  • #elif

  • #endif

  • #error

  • #pragma

0 comments:

Post a Comment