9,1
4,0
4,3
9,3
第1题:
以下程序运行后的输出结果是( )。
include<stdio.h>
main()
{ int x=20;
printf("%d", 0<x<20);
printf("%d\n", 0<x && x<20);
}
第2题:
有以下程序
#include <stdio.h>
void func(int n)
{ int i;
for(i=0;i<=n;i++) printf(”*”);
printf(”#”).
}
main( )
{ func(3); printf(”???? ”); func(4); printf(”\n”); }
程序运行后的输出结果是
A)****#????***#
B)***# ????*** *#
C)**#????*****#
D)****#????*****#
第3题:
有以下程序: #include <stdio.h> main( ) { int a=2,b; b=a<<2;printf("%d\n",b); } 程序运行后的输出结果是( )。
A.2
B.4
C.6
D.8
第4题:
下列程序的输出结果是( )。
#include<stdio.h>
main()
{ int a=4;
printf("%d\n",(a+=a-=a*A) );
}
A.-8
B.14
C.0
D.-24
第5题:
有以下程序: #include <stdio.h> #define F(X,Y)(X)*(Y) main() { int a=3,b=4; printf("%d\n",F(a++,b++)); } 程序运行后的输出结果是( )。
A.12
B.15
C.16
D.20
第6题:
有程序 # include<stdio.h> main( ) { int a,b,c=246; a=c/100%9; b=(-)& &(-1); printf("%d,%d\n%,a,b); } 输出结果是 ( )
A.2,1
B.3,2
C.4,3
D.2,-1
第7题:
9,1
4,0
4,3
9,3
第8题:
****#????***#
***#????*****#
**#????*****#
****#????*****#
第9题:
3,3,3
2,2,3
1,2,3
1,1,3
第10题:
10
9
8
7
第11题:
-12
9
0
3
第12题:
4,1;1,4;
4,1;2,4;
4,3;1,9;
4,3;2,3;
第13题:
下列程序的输出结果是______。 #include <stdio. h> main ( ) { int a,b,c=246; a=c/100%9; b=(-1)&&(-1); printf ("%d, %d\n", a,b); }
A.2,1
B.3,2
C.4,3
D.2,-1
第14题:
有以下程序: #include <stdio.h>main( ){ int m =12,n=34; printf( "% d% d" ,m++ , ++n); printf("% d% d \n" ,n ++ , ++m); }程序运行后的输出结果是( )。
A.12353514
B.12353513
C.12343514
D.12343513
第15题:
有以下程序: #include < stdio. h > main ( ) int a=3,b=4,c=5,d=2; if(a>b) if(b>c)printf("%d",d++ +1); else printf( "% d", + + d + 1 ); printf( "% d \n" ,d); 程序运行后的输出结果是( )。
A.2
B.3
C.43
D.44
第16题:
有以下程序: #include <stdio, h> main ( ) { int a =666,b =888; printf( "%'d \n", a,b); 程序运行后的输出结果是( )。
A.错误信息,
B.666
C.888
D.666,888
第17题:
如下程序的运行结果是______。 #include<stdio.h> main() { int x=y=3,z=1; printf ("%d%d\n",(++x,y++),z+2); }
A.3 4
B.4 2
C.4 3
D.3 3
第18题:
有以下程序: #include <stdio.h> main( ) { int a,b,d =25; a = d/10%9;b = a&&(-1); printf("% d,% d\n" ,a,b); } 程序运行后的输出结果是( )。
A.6,1
B.2,1
C.6,0
D.2,0
第19题:
-1
0
1
7
第20题:
12
11
10
9
第21题:
6
1
0
3
第22题:
8
9
7
10
第23题:
2
4
6
8
第24题:
8,2,
8,8,
2,4,
4,8,