(18)有以下程序
#include <stdio.h>
main()
{ int x=011;
printf("%d\n",++x);
}
程序运行后的输出结果是
A)12
B)11
C)10
D)9
第1题:
有以下程序
#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
第2题:
有以下程序 #include <stdio.h> main() { int a=1, b=2, c=3, x; x=(a^b)&c; printf("%d\n",x); } 程序的运行结果是
A.0
B.1
C.2
D.3
第3题:
有以下程序 #include<stdio.h> int fun(int x;int y) { if(x=y)reurn(x); else return((x+y)/2); } main() { int a=4,b=5,c=6; printf("%d\n",fun(2*a,fun(b,c))); } 程序运行后的输出结果是______。
A.3
B.6
C.8
D.12
第4题:
以下程序运行后的输出结果是( )。
include<stdio.h>
main()
{ int x=20;
printf("%d", 0<x<20);
printf("%d\n", 0<x && x<20);
}
第5题:
有以下程序: #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
第6题:
以下程序的输出结果是( )。
include<stdio.h>
main()
fint x=0;
sub(&x,16,2);
printf("%d\n",x);
}
sub(int*a,int n,int k)
{if(k<=n) sub(a,n/2,2*k);
*a+=k;
}
第7题:
有以下程序: #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
第8题:
有以下程序
#include<stdio.h>
main()
{int x=011;
printf(“%d\n”,++x);
}
程序运行后的输出结果是
A.12
B.11
C.10
D.9
第9题:
A.0
B.5
C.14
D.15
第10题:
有以下程序: #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
第11题:
试题11
以下程序运行后的输出结果是______.
#include <stdio.h>
void fun(int x)
{ if(x/5>0) fun(x/5)
printf(“%d”, x);
}
main()
{ fun(11); printf(“\n”);}
第12题:
12
11
10
9
第13题:
有以下程序:#include <studio. 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
第14题:
有以下程序: #include<studio.h> #defme 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
第15题:
有以下程序 #include<stdio.h> main() { int a=5,b=lt; t=(a<<2)|b;printf("%d\n",t); } 程序运行后的输出结果是______。
A.21
B.11
C.6
D.1
第16题:
下面程序的运行结果是( )。
include<stdio.h>
main()
{int a=25;
fun(&A);
}
fun(int *x)
{ printf("%d\n",++*x);
}
第17题:
以下程序运行后,输出结果是______。 #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
第18题:
以下程序运行后的输出结果是( )。 include<string.h> main() {char ch[]="abcd",x[4][4];int i; for(i=0;i<4;i++)strcpy(x[i],ch); for(i=0;i<4;i++)printf("%s",&x[i][i]); printf("\n"); }
第19题:
有以下程序: #include <stdio.h> main() { int x=3,y=2,z=1; printf("%d\n",x/y&~z); 程序运行后的输出结果是( )。
A.3
B.2
C.1
D.0
第20题:
有以下程序
#include
main()
{ int x=011;
printf("%d\n",++x);
}
程序运行后的输出结果是
A.12
B.11
C.10
D.9
第21题:
有以下程序: #include <stdio, h> main ( ) { int a =666,b =888; printf( "%'d \n", a,b); 程序运行后的输出结果是( )。
A.错误信息,
B.666
C.888
D.666,888
第22题:
有以下程序: #include <stdio. h > main( ) { int m =3,n =4,x; x= -m++; x=x+8/++n; prinff(" % d \n" ,x); } 程序运行后的输出结果是( )。
A.3
B.5
C.-1
D.-2
第23题:
4
2
8
1