C Programming101 : " #ifdef, #endif " statements - conditional compilation -


 The #ifdef - #endif statement dictates what parts of a program are taken into account during compilation, depending on whether a variable is defined or not.

Below is a simple example:


If we remove the definition of "VAR", the line is not printed:

Comments

Leave as a comment:

Archive