#define IDENTIFIER without a token

前端 未结 4 542
长发绾君心
长发绾君心 2020-12-06 00:05

What does the following statement mean:

#define FAHAD

I am familiar with the statements like:

#define FAHAD 1
4条回答
  •  醉话见心
    2020-12-06 00:50

    #define FAHAD
    

    this will act like a compiler flag, under which some code can be done. this will instruct the compiler to compile the code present under this compiler option

    #ifdef FAHAD
    printf();
    #else
    /* NA */
    #endif
    

提交回复
热议问题