A.1,2,3
B.3,1,2
C.1,3,2
D.2,3,1
[单选题]有以下程序void f(int v,int w){int t;t=v;v=w;w=t;}main(){int x=1,y=3,z=2;if(x>y)f(x,y);else if(y>z)f(y,z);else f(x,z);printf("%d,%d,%d/n",x,y,z);}执行后输出结果是()A . 1,2,3B . 3,1,2C . 1,3,2D . 2,3,1
[单选题]有以下程序 void f(int v,int w) { int t; t=v;v=w;w=t } main() {int x=1,y=3,z=2; if(x>y) f(x,y); else if(y>z) f(y,z); else f(x,z); pfintf("%d,%d,%d/n",x,y,2); } 执行后输出结果是A.1,2,3B.3,1,2C.1,3,2D.2,3,1
[单选题]有以下程序的输出结果是( ) void f(int v , int w) { int t; t=v;v=w;w=t; } main( ) { int x=1,y=3,z=2; if(x>y) f(x,y); else if(y>z) f(y,z); else f(x,z); printf(“%d,%d,%d/n”,x,y,z);}A.1,2,3B.3,1,2C.1,3,2D.2,3,1
[单选题]有以下程序: voidf(int*x,int * y) { int t; t= *x;*x= *y;*y=t; } main() { inta[8]={1,2,3,4,5,6,7,8},i,*p,*q; p=a;q=&a[7]; while(p) { f(p,q);p++;q--;} for(i=0;i<8;i++)printf("%d,",a[i]); } 程序运行后的输出结果是______;A.8,2,3,4,5,6,7,1,B.5,6,7,8,1,2,3,4,C.1,2,3,4
[单选题]有下列程序: main() { int t, a=1, b=5, c=-2; while(a>b>c) { t=a; a=b; b=t; c++;} printf("%d, %d, %d", a, b, c); }A.1, 5, 0B.1, 5, -2C.5, 1, -1D.5, 1, -2
[单选题]若有以下定义和语句 ( )int u=010,v=Ox10,w=10;printf("%d,%d%d/n",u,v,w);则输出结果是A.8,16,10B.10,10,10C.8,8,10D.8,10,10
[单选题]以下程序的输出结果是_______。 main() { int w=5;fun(w);printf("/n");} fun(int k) { if(k>0) fun(k-1); printf("%d",k); }A.5 4 3 2 1B.0 l 2 3 4 5C.1 2 3 4 5D.5 4 3 2 1 0
[单选题]若有下列定义和语句:int u=011,v=0x11,w=11;printf("%o,%x,%d/n",u,v,w);则输出结果是( )。A.9,17,11B.9,11,11C.11,11,11D.11,17,11
[单选题]有以下程序: void f(int*x,int*y) { int t; t=*x;*x=*y;*y=t; } main() { int a [8]={1, 2,3,4,5, 6, 7,8},i,*p,*q; p=a;q=&a[7]; while(p<q) {f(p,q);p++;q-;} for(i=0;i<8;i++)printf("%d,"a[i]); } 程序运行后的输出结果是 ______。A.823,4,5,6,7,1,B.5,6,7,8,12,3,4,C.1,2,3,4,
[单选题]有以下程序:void f(int *x,int *y){ int *t; t=x; x=y ;y=t; *x=*y;}main(){ int a[8]={1,2,3,4,5,6,7,8},i,*p,*q; p=a;q=&a[7]; while(p>q) { f(p,q);p++;q--} for(i=0;i<8;i++)printf("d,",a[i]);}程序运行后的输出结果是( )。A.8,2,3,4,5,6,7,1,B.5,6,7,8,1,2,3,4,C.1,2,3