#include"stdio.h" #define MAX(A,B) (A)>(B)?(A):(B) #define PRINT(Y) printf("Y=%d\n",Y) main() { int#include"stdio.h"#define MAX(A,B) (A)>(B)?(A):(B)#define PRINT(Y) printf("Y=%d\n",Y)main(){int a=1,b=2,c=3,d=4,t;t=10*MAX(a+b,c+d);PRINT(t);}
来源:学生作业帮助网 编辑:作业帮 时间:2024/12/01 07:53:13
=<(Pb'Y & X 3\ !d_`g3RSĂ6>麞+uoeg_,yuK!j@ )l맳<ٱu6<ٽ{:!@Klbz/M~ھXF 1O 2A
#include"stdio.h" #define MAX(A,B) (A)>(B)?(A):(B) #define PRINT(Y) printf("Y=%d\n",Y) main() { int#include"stdio.h"#define MAX(A,B) (A)>(B)?(A):(B)#define PRINT(Y) printf("Y=%d\n",Y)main(){int a=1,b=2,c=3,d=4,t;t=10*MAX(a+b,c+d);PRINT(t);}
#include"stdio.h" #define MAX(A,B) (A)>(B)?(A):(B) #define PRINT(Y) printf("Y=%d\n",Y) main() { int
#include"stdio.h"
#define MAX(A,B) (A)>(B)?(A):(B)
#define PRINT(Y) printf("Y=%d\n",Y)
main()
{
int a=1,b=2,c=3,d=4,t;
t=10*MAX(a+b,c+d);
PRINT(t);
}
#include"stdio.h" #define MAX(A,B) (A)>(B)?(A):(B) #define PRINT(Y) printf("Y=%d\n",Y) main() { int#include"stdio.h"#define MAX(A,B) (A)>(B)?(A):(B)#define PRINT(Y) printf("Y=%d\n",Y)main(){int a=1,b=2,c=3,d=4,t;t=10*MAX(a+b,c+d);PRINT(t);}
#define就是完全拷贝.t=10*MAX(a+b,c+d);执行起来就是t=10*(a+b)>(c+d)?(a+b):(c+d);因为int a=1,b=2,c=3,d=4,t;所以10*(a+b)>(c+d)所以t=a+b=3.输出3.