> 其他 >
#include #define f(x) x*x main() {int a=6,b=2,c; c=f(a)/f(b); printf("%d\n",c); }
为什么上面的程序输出结果为36
人气:349 ℃ 时间:2020-06-07 20:25:01
解答
#define会代入
c=f(a)/f(b);
变成c=a*a/b*b;
即6*6 / 2 * 2
36 / 2 * 2
18 * 2
36
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版