#define add(x) x*x main(){int a=4,b=6,c=7,d=add(a+b)*c;printf("d=%d\n",d);}怎样分析?
人气:355 ℃ 时间:2020-05-29 16:46:09
解答
#define宏是直接替换,不会先给你计算的
add(a+b) = a+b*a+b
d = add(a+b)*c = a+b*a+b*c =4+4*6+6*7 = 4+24+42 = 70
都是直接替换,不要自己加一些没有的字符.
推荐
- #define f(x) x*x main() {int a=6,b=2,c; C=f(a)?f(b); printf("%d\n",c);}
- #include #define f(x) x*x main() {int a=6,b=2,c; c=f(a)/f(b); printf("%d\n",c); }
- 结果是() A.10 B.11 C.12 D.13 #define MA(x) x*(x+3) main() {int a=1,b=2;printf("%d\n",MA(a+b);}
- 一个直角三角形斜边长50厘米,其余两条直角边长分别是40厘米和30厘米,那么斜边上的高是多少?
- I have a kite.( ) ( ) a kite?No,( ) ( ).
- 求∫ e^(-2x) dx
- see we to film the also went receive did today any you letter?time the finish what concert does
- 火力发电厂用石灰石(主要成分是碳酸钙)的悬浊液吸收废弃中的SO2以防止环境污染,其反应的化学方程式为
猜你喜欢
- A、B都是正整数,如果A除以B等于10,那么A、B的最小公倍数是几谢谢了,
- The words of his old teacher left a ______ impression on his mind.He is still influenced by them.
- 有关交通安全的作文600字
- 举例说出“经过两点且只有一条直线”和“两点之间,线段最短”这两个结论在实际生活中的运用
- 在某张月历上,一个月内是五个星期日正好在同列,且它们的日期数之和是80,则本月第一个星期一是__号?
- each other for a change是什么意思
- "Bill,is this_____bike?" "Yes,it is."
- 翻译 Happiness is not wishing for what we dont have,but enjoying what we do possess