以下程序的运行结果是【 】。 include<stdio.h> define MAX(a,b) (a>b?a:b)+1 main() { int i=6,j=8,k; printf("%d\n",MAX(i,j)); }
第1题
以下程序的运行结果是【 】。 include<stdio.h> define MAX(a,b) (a>b?a:b)+1 main() { int i=6,j=8,k; printf("%d\n",MAX(i,j)); }
第2题
以下程序的输出结果是【 】。 include <stdio.h> define MAX(x,y)(x),(y)?(x):(y) main() { int a=5,b=2,c=3,d=3,t; t=MAX(a+b,c+d)*10; printf("%d\n",t); }
第3题
以下程序的运行结果是()。 #include <stdio.h> #define MIN(x,y) (x)<(y)? (x):(y) main() { int i=10,j=15,k; k=10*MIN(i,j); printf("%d\n",k); }
A.10
B.15
C.100
D.150
第4题
以下程序运行后,输出结果是 () include<stdio.h> define PT5.5 define S (x)PT* x * x main() { int a=1,b=2; printf("%4.1f\n",s(a+b)); }
A.49.5
B.9.5
C.22
D.45
第5题
下面程序的运行结果是()。 include<stdio.h> define MAx(a,b,c) ((a)>《b)?((a)>(c)?(a):(C)):((b)>(C)? (b):(C))) void main() { int x,Y,Z; x=1; y=2; z=3; printf("%d,",MAx(x,Y,Z)); printf("%d,",MAx(x+Y,Y,y+x)); printf("%d\n",MAx(x,y+Z,Z)); )
A.3,2,3
B.6,5,7
C.3,1,90
D.3,3,5
第6题
以下程序运行后,输出结果是 () # include<stdio.h> # define PT5.5 # define S (x)PT* x * x main() { int a=1,b=2; printf("%4.1f\n",s(a+b)); }
A.49.5
B.9.5
C.22
D.45
第7题
下面程序的运行结果是【 】。 include <stdio.h> define N 10 define s(x) x*x define f(x) (x*x) main() { int i1,i2; i1=1000/s(N); i2=1000/f(N); printf("%d %d\n",i1,i2); }
第8题
以下程序运行后,输出结果是______。 define P4.5 define S(x)P*x*x include<stdio.h> main() { int a=2,b=3; printf("%.1f\n",S(a+b)); }
A.49.5
B.112.5
C.18
D.24
第9题
以下程序运行后,输出结果是______。 #define P4.5 #define S(x)P*x*x #include<stdio.h> main() { int a=2,b=3; printf("%.1f\n",S(a+b)); }
A.49.5
B.112.5
C.18
D.24
第10题
以下程序运行后,输出结果是 define PT 5.5 define S(x) PT*x*x include<stdio.h> main() { int a=1,b=2; printf("%4.1f\n",S(a+b));}
A.49.5
B.9.5
C.22
D.45
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!