#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/11/16 15:57:14
#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.