Programming with C

⌘K
  1. Home
  2. Docs
  3. Programming with C
  4. Input/Output statements
  5. Pre-processor directives

Pre-processor directives

The preprocessor is controlled by directives known as preprocessor directives, which are not a part of C language. A preprocessor directive consists of various preprocessing tokens and begins with a # (pound) symbol.

Preprocessor directives available in C language are,

  • Macro replacement directive (#define, #undef)
  • Source file inclusion directive (#include)
  • Line directive (#line)
  • Error directive (#error)
  • Pragma directive (#pragma)
  • Conditional Compilation directive (#if, #else, #elif, #endif, #ifdef,#ifndef)
  • Null directive (# new-line)

Views: 0

Articles

How can we help?

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments