为什么以下代码的输出值为5?
#include<stdio.h>
#define A -B
#define B -C
#define C 5
int main()
{
printf("The value of A is %d\n", A);
return 0;
}
- - 5
一样,而不是--5
,后者会出错(无法对常量进行减法操作)。 - Jonathan Leffler