#define MAX(A,B) A>B 2*A :2*B#define MAX(A,B) A>B 2*A :2*Bvoid main(){ int a=1,b=2,c=3,d=4,t;t=MAX(a+b,c+d);printf("%d\n",t);}
来源:学生作业帮助网 编辑:作业帮 时间:2024/08/26 00:37:41
![#define MAX(A,B) A>B 2*A :2*B#define MAX(A,B) A>B 2*A :2*Bvoid main(){ int a=1,b=2,c=3,d=4,t;t=MAX(a+b,c+d);printf(](/uploads/image/z/8735883-51-3.jpg?t=%23define+MAX%28A%2CB%29+A%3EB+2%2AA+%3A2%2AB%23define+MAX%28A%2CB%29+A%3EB+2%2AA+%3A2%2ABvoid+main%28%29%7B+int+a%3D1%2Cb%3D2%2Cc%3D3%2Cd%3D4%2Ct%3Bt%3DMAX%28a%2Bb%2Cc%2Bd%29%3Bprintf%28%22%25d%5Cn%22%2Ct%29%3B%7D)
x)SNIMKUupqTpsR0rT2r+YYWhkdklkbkSb]bҙi]PTSi]kT D@rE`I4g0/"`:1)Og{ڰٌ@ˁl
^dǪ'{X̉O;6?O;?3ik]_N_r=<;P
#define MAX(A,B) A>B 2*A :2*B#define MAX(A,B) A>B 2*A :2*Bvoid main(){ int a=1,b=2,c=3,d=4,t;t=MAX(a+b,c+d);printf("%d\n",t);}
#define MAX(A,B) A>B 2*A :2*B
#define MAX(A,B) A>B 2*A :2*B
void main()
{ int a=1,b=2,c=3,d=4,t;
t=MAX(a+b,c+d);
printf("%d\n",t);
}
#define MAX(A,B) A>B 2*A :2*B#define MAX(A,B) A>B 2*A :2*Bvoid main(){ int a=1,b=2,c=3,d=4,t;t=MAX(a+b,c+d);printf("%d\n",t);}
#define MAX(A,B) A>B 2*A :2*B
void main()
{
int a=1,b=2,c=3,d=4,t;
t=MAX(a+b,c+d);
printf("%d\n",t);
}
返回值是 2*c+d=10 这个你要考虑到运算副优先级问题.