Preprocessor directives in c


In c all the preprocessor directives start with # character except define() operator. All the directives have different task which executes just before the actual execution of c program which makes the program more portable. These directives are used only to instruct compilers.

List all preprocessor directives in c.



  • Preprocessor definitions in c
  • Preprocessor directive in c
  • #include directive in c
  • # define directive in c
  • Pragma directive in c
  • Warning directive
  • Preprocessor operators in c
  • # if directive in c
  • #line directive in c
  • # error directive in c
  • # elif in c
  • # ifdef and #endif in c
  •  # ifndef in c example
  • #undef in c
  • What is header file in ?
  • C preprocessor questions
  • C tutorial home.
  • 1 comment:

    Bhavini Sarkar said...

    Preprocessor directives are processed before compilation of source code.
    All preprocessor directives(Header files) begin with a # symbol.
    Preprocessor directives in C do not ends with semicolon.