原来还有#elif,代码来了!
文件: if_elif.c
#include <stdio.h>
#define A -1
int main(int agrc, char **argv)
{
#if A > 0
printf("A > 0\n");
#elif A < 0
printf("A < 0 \n");
#else
printf("A == 0 \n");
#endif
return 0;
}
转载于:https://blog.51cto.com/2714254/1683799