求解程序运行过程
# include<stdio.h>#define M 5
#define f(x,y) x*y+M
main()
{ int k;
k=f(2,3)*f(2,3);
printf("%d\n",k);
}
答案为什么是41?
# include<stdio.h> #define M 5 // #define f(x,y) x*y+M int f(int x,int y) { int k=x*y+M; return k; } main() { int k; k=f(2,3)*f(2,3); printf("%d\n",k); }
# include<stdio.h> #define M 5 #define f(x,y) (x*y+M) main() { int k; k=f(2,3)*f(2,3); printf("%d\n",k); }