12
11
10
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<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
第3题:
下面程序的运行结果是( )。
include<stdio.h>
main()
{int a=25;
fun(&A);
}
fun(int *x)
{ printf("%d\n",++*x);
}
第4题:
以下程序运行后,输出结果是______。 #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
第5题:
以下程序的输出结果是( )。
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;
}
第6题:
有以下程序: #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
第7题:
有以下程序
#include<stdio.h>
main()
{int x=011;
printf(“%d\n”,++x);
}
程序运行后的输出结果是
A.12
B.11
C.10
D.9
第8题:
有以下程序: #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
第9题:
(18)有以下程序
#include <stdio.h>
main()
{ int x=011;
printf("%d\n",++x);
}
程序运行后的输出结果是
A)12
B)11
C)10
D)9
第10题:
第11题:
10
9
8
7
第12题:
12
11
10
9
第13题:
有以下程序: #include <stdio. h> main( ) { unsigned int a; int b=-1; a=b; printf(" % u", a);程序运行后的输出结果是( )。
A.-1
B.65535
C.32767
D.-32768
第14题:
以下程序运行后的输出结果是( )。
include<stdio.h>
main()
{ int x=20;
printf("%d", 0<x<20);
printf("%d\n", 0<x && x<20);
}
第15题:
有以下程序: #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
第16题:
有以下程序
#include <stdio.h>
#define S(x) (x)*x*2
main( )
{ int k=5, j=2;
printf( "%d,”,s(k+j) ); printf(”%d\n”,s( (k-j) ) );
}
程序运行后的输出结果是
A) 98,18
B) 39,11
C) 39,18
D) 98,11
第17题:
以下程序运行后的输出结果是( )。 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"); }
第18题:
【题目描述】
(18)有以下程序
#include <stdio.h>
main()
{ int x=011;
printf("%d\n",++x);
}
程序运行后的输出结果是
A)12
B)11
C)10
D)9
第19题:
有以下程序
#include
main()
{ int x=011;
printf("%d\n",++x);
}
程序运行后的输出结果是
A.12
B.11
C.10
D.9
第20题:
试题11
以下程序运行后的输出结果是______.
#include <stdio.h>
void fun(int x)
{ if(x/5>0) fun(x/5)
printf(“%d”, x);
}
main()
{ fun(11); printf(“\n”);}
第21题:
下列程序运行后的输出结果是()。 #include
第22题:
4
2
8
1
第23题:
-12
9
0
3