问个问题
#include "stdio.h" #define PUDGE(y) 2.84+y
#define PR(a) printf("%d",(int)(a))
#define PRINTI(a) PR(a);putchar('\n')
main()
{
int x=2;
printf("%d\n",PUDGE(5));
printf("%d\n",PUDGE(5)*x);
printf("%d\n",(int)(PUDGE(5)));
PRINTI(PUDGE(5)*x);
getchar();
}
输出结果:
-28836
18350
7
12
这是为什么啊...一直看到不明白..
----------------解决方案--------------------------------------------------------