以下程序运行后的输出结果是()。 main( ) {int a=010,b=2,c; c=a+b; printf(“%d”,c); }
第1题:
以下程序运行后,输出结果是 #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.0
第2题:
以下程序运行后的输出结果是______。
main ()
int a.b,c;
a=10; b=20; c=(a%b<)||{a/b>1);
printf("%d %d %d n" ,a,b,c);
}
第3题:
以下程序运行后的输出结果是( )。
include<stdio.h>
main()
{ int a=1, b=7;
do {
b=b/2; a+=b;
} while(b>1);
printf("%d\n",A);
}
第4题:
有以下程序: #include <stdio. h> main( ) { unsigned int a; int b=-1; a=b; printf(" % u", a);程序运行后的输出结果是( )。
A.-1
B.65535
C.32767
D.-32768
第5题:
以下程序运行后的输出结果是( )。
include<stdio.h>
main()
{ int x=20;
printf("%d", 0<x<20);
printf("%d\n", 0<x && x<20);
}
第6题:
有以下程序 #include<stdio.h> void main() { int a=1,b=0; printf("%d,",b=(a++)+(a++)); pfintf("%d\n",a+B); } 程序运行后的输出结果是( )。
A.4,6
B.2,5
C.3,5
D.2,6
第7题:
以下程序运行后,输出结果是______。 #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
第8题:
有以下程序: main {int a=0,b=0; a=10; /*给a赋值 b=20; 给b赋值 */ printf("a+b=%d\n",a+b);//输出计算机结果 } 程序运行后的输出结果是( )。
A.a+b=10
B.a+b=30
C.30
D.出错
第9题:
以下程序运行后,输出结果是 #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
第10题:
若有如下程序: sub(int a,int b,int*z) { *z=a+b; return; } main() { int a=1,b=2,C=3,d,e; sub(a,b,&d); sub(C,d,&e); printf("%d",e); } 则程序运行后的输出结果是( )。
A.3
B.4
C.5
D.6
第11题:
第12题:
0,0
1,0
3,2
1,2
第13题:
以下程序运行后,输出结果是 #define PT 5.5 #define S(x)PT* x * x main() {int a=1,b=2; printf("%4.lf\n",S(a+b); }
A.49.5
B.9.5
C.22
D.45
第14题:
以下程序的输出结果是( )。 #include <stdio.h> main() { int a=21,b=11; printf("%d\n",--a+b,--b+a); }
A.30
B.31
C.32
D.33
第15题:
有以下程序: #include<stdio.h> #define SUB(a)(a)-(a) main( ) {int a=2,b=3,c=5,d; d=SUB(a+b)*C; printf("%d\n",d); } 程序运行后的输出结果是( )。
A.0
B.-l2
C.-20
D.10
第16题:
以下程序运行后的输出结果是int a=5;fun(int b){ static int a=10; a+=b++; printf("%d, ",a);}main{ int c=20; fun(c); a+=c++; printf("%d\n",a);}
第17题:
有以下程序: #include<stdiO.h> main( ) {int a=1,b=0; printf("%d,",b=a+b); printf("%d\n",a=2+b); ‘’ } 程序运行后的输出结果是( )。
A.0,0
B.1,3
C.3,2
D.1,2
第18题:
有以下程序: #include<stdio.h> #define X 5+6 main() {int a=2,c; C=X*2: printf("%d",C); } 程序运行后的输出结果是( )。
A.17
B.22
C.16
D.11
第19题:
以下程序运行后,输出结果是______。 #define PT 5.5 #define S(x) PT*x*x main() { int a=1,b=2;printf("%4.1 f\n",S(a+b)); }
A.49.5
B.9.5
C.22
D.45
第20题:
若有如下程序: sub(int a,int b,int *z) {*z=a+b; return;} main() {int a=1,b=2,c=3,d,e; sub(a,b,&D) ; sub(c,d,&e); printf("%d",e); } 则程序运行后的输出结果是
A.3
B.4
C.5
D.6
第21题:
以下程序输出的结果是( )。 #include <stdio.h> main() { int i=010,j=10; printf("%d,%d\n:,++i,j--); }
A.11,10
B.9,10
C.010,9
D.10,9
第22题:
以下程序运行后的输出结果是()。 main( ) {int a=1,b=3,c=5; if(c=a+b) printf(“yes”); else printf(“not”); }
第23题: