Example: #define PI 3.14
We can undefine PI macro by #undef PI
Example: #define symbol replacement
When the preprocessor encounters #define directive, it replaces any occurrence of symbol in the rest of the code by replacement. This replacement can be an statement or expression or a block or simple text.
Example: #define CUBE(X)(X*X*X)
#ifndef XSTRING_H
#define XSTRING_H defines the same preprocessor symbol,
Finally, the last line of the file, #endif
Copyright ©CuriousTab. All rights reserved.