(ANSI) C Reference – C Preprocessors

A look at the preprocessors that can be used in the C programming language.


#include <filename> ->  Include library file


#include “filename” ->  Include a user file


#define name text ->  Replacement text


#define name(var) text ->  Replacement macro


#undef name ->  Un-define


#if, #else, #endif, #elif ->  Conditional execution


#ifdef ->  Is name defined?


#ifndef ->  Is name not defined?


defined(name) ->  Name defined?


\ ->  Line continuation char


# ->  Quoted string in replace


## ->  Concatenate args and rescan


This entry was posted in C Preprocessors. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site. Tweet This! Tweet This! or use to share this post with others.

Leave a Reply: