Why does #define INVALID_VALUE -999; give a syntax error when used?

后端 未结 6 2103
长发绾君心
长发绾君心 2020-12-11 22:40

I am trying to compare to a defined constants in C, and I have simplified my program to the following:

#include \"stdio.h\"
#include \"stdlib.h\"
#define INV         


        
6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-11 23:33

    Change macro

    from:

    #define INVALID_VALUE -999;
    

    to

    #define INVALID_VALUE -999
    

    Bye

提交回复
热议问题