有以下程序#include "stdio.h"#define M(x,y) (x)*(y) #define N(x,y) (x)/(y) main(){ int a=5,b=6,c=8,k; k=N(M(a,b),c); printf("%d\n",k);} 程序的运行结果是A.3 B.5C.6 D.8
第1题:
阅读下列程序段,则程序的输出结果为 #include"stdio.h" #define M(X,Y)(X)*(Y) #define N(X,Y)(X)/(Y) main() { int a=5,b=6,c=8,k; k=N(M(a,b),c); printf("%d\n",k);}
A.3
B.5
C.6
D.8
第2题:
下列程序的输出结果是( )。 #include<stdio.h> #defineF(x)2.84+x #define w(y) printf("%d",(int)(y)) #define P(y)w(y)putchar('\n') main() { int x=2; P(F(5)*x); }
A.12
B.13
C.14
D.16
第3题:
以下程序的输出结果是( )。 #include<stdio.h> #define F(x)2.84+x #define w(y)printf("%d",(int)(y)) #define P(y)w(y) main() {int x=2; P(F(5)*x); }
A.12
B.13
C.14
D.16
第4题:
有以下程序: #include<stdio.h> int fun(int x,int y) {if(x==y)return(x); else return((x+y)/2); } main() {int a=1,b=2,c=3; printf("%d\n",fun(2*a,fun(b,C))); } 程序运行后的输出结果是( )。
A.2
B.3
C.4
D.5
第5题:
下列程序的输出结果是( )。
#include<stdio.h>
#defineF(x)2.84+x
#definew(y)printf("%d",(int(y))
#defineP(y)w(y)pmchar('\n'》
main()
{int x=2;
P(F(5)*x);
}
A.12
B.13
C.14
D.16
第6题:
下列程序的输出结果是( )。 #include<stdio.h> #define F(x)2.84+x #define w(y)printf("%d",(int)(y)) #define P(y)w(y)putchar('\n') main() { int x=2; P(F(5)*x); }
A.12
B.13
C.14
D.16
第7题:
下列程序的输出结果是( )。
#include<stdio.h>
#defineF(x)2.84+x
#definew(y)printf("%d",(int(y))
#defineP(y)w(y)pmchar('\n'》
main()
{int x=2;
P(F(5)*x);
}
A.12
B.13
C.14
D.16
第8题:
下列程序的输出结果是( )。
#include<stdio.h>
#define F(x)2.84+x
#define w(y)printf("%d",(int)(y))
#define P(y)w(y)putchar('\n')
main()
{ int x=2;
P(F(5) *x);
}
A.12
B.13
C.14
D.16
第9题:
阅读下列程序段,则程序的输出结果为 #include"stdio.h" #defineM(X,Y)(X)*(Y) #defineN(X,Y)(X)/(Y) main() {f int a=5,b=6,c=8,k; k=N(M(a,b),c); printf("%d\n",k);}
A.3
B.5
C.6
D.8