#define IDENTIFIER without a token

c

Solution

Defining a constant without a value acts as a flag to the preprocessor, and can be used like so:

#define MY_FLAG
#ifdef MY_FLAG
/* If we defined MY_FLAG, we want this to be compiled */
#else
/* We did not define MY_FLAG, we want this to be compiled instead */
#endif

Problem

What does the following statement mean: ``` #define FAHAD ``` I am familiar with the statements like: ``` #define FAHAD 1 ``` But what does the #define statement without a token signify? Is it that it is similar to a constant definition?

Original source

Related problems