- C has a preprocessor directive (also called a macro) for creating symbolic constants
#define NAME REPLACEMENT
#define PI 3.14159265
- At the time your program is compiled,
#define
goes through your code and replacesNAME
withREPLACEMENT
- if
#include
is similar to copy/paste, then#define
is analogous to find/replace