我对在C语言中使用#IF预处理器可以使用的表达式类型有些困惑。我尝试了下面的代码,但它没有起作用。请解释并提供可以与预处理器一起使用的表达式示例。
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
int c=1;
#if c==1
#define check(a) (a==1)?a:5
#define TABLE_SIZE 100
#endif
int main()
{
int a = 0, b;
printf("a = %d\n", a);
b = check(a);
printf("a = %d %d\n", a, TABLE_SIZE);
system("PAUSE");
return 0;
}