私はいくつかの厄介な前処理を試みていましたが、次のようなものを思いつきました:
#include <stdio.h>
#define SIX =6
int main(void)
{
int x=6;
int y=2;
if(x=SIX)
printf("X == 6\n");
if(y=SIX)
printf("Y==6\n");
return 0;
}
gcc は私にエラーを与えます:
test.c: 関数 'main' 内:
test.c:10:8: エラー: '=' トークンの前に式が
必要です test.c:12:8: エラー: '=' トークンの前に式が必要です
何故ですか?