A.8,2,3,4,5,6,7,1,
B.5,6,7,8,1,2,3,4,
C.1,2,3,4,5,6,7,8,
D.8,7,6,5,4,3,2,1,
[单选题]有以下程序; 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.8,2,3,4,5,6,7,1,B.5,6,7,8,1,2,3,4,C.
[单选题]有以下程序void f(int x,int y){int t;if(x < y){t=x;x=y;y=t;}}main(){int a=4,b=3,c=5;f(a,b);f(a,c);f(b,c);printf("%d,%d,%d/n",a,b,c);}执行后输出结果是()A . 3,4,5B . 5,3,4C . 5,4,3D . 4,3,5
[单选题]有以下程序 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.8,2,3,4,5,6,7,1,B.5,6,7,8,1,2,3,4,C.1,2,3,4,5,6,7,
[单选题]有以下程序: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
[单选题]有以下程序: 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, if(x<y){t=x;x=y;t;}}main(){ int a=4,b=3,c=5; f(a,B) ;f(a,C) ;f(b,C) ; cout<<a<<","<<b<<","<<c<<end1;}执行后输出结果是A.3,4,5B.5,3,4C.5,4,3D.4,3,5
[单选题]有以下程序void f(int x,int y){ int t;if(x<y){t=x;x=y;y=t;}}main( ){ int a=4,b=3,c=5;f(a,b); f(a,c); f(b,c);cout<<a<<","<<b<<","<<c<<endl;}执行后输出结果是A.3,4,5B.5,3,4C.5,4,3D.4,3,5
[单选题]有以下程序 void f(int x,int y) { int t; if(x<y){ t=x; x=y; y=t; } } main( ) { int a=4,b=3,c=5; f(a,b); f(a,c); f(b,c); printf("%d,%d,%d/n",a,b,c); } 执行后输出的结果是A.3,4,5B.5,3,4C.5,4,3D.3,5,4
[单选题]有如下程序void f(int *x,int *y){ int t; t=*x;*x=*y;*y=t;}main(){ int a[6]={1,2,4,6,8,10},i,*p,*q; p=a;q=&a[5]; while(p<q) { f(p,q); p++; q--; } for(i=0;i<6;i++) printf("%d,",a[i]);}该程序的输出结果是A.1,2,4,6,8,10 B.10,8,4,6,2,1C.10,8,6,4,2,1 D.10,2,4,
[单选题]有如下程序: void f(int x, int y) { int t; if (x<y) { t=x; x=y; y=t; } } main() { int a=4,b=3,C=5, f (a,b); f (a,c); f (b,c); printf("%d,%d,%d/n",a,b,C); } 执行后输出结果是( )。A.3,4,5B.5,3,4C.5,4,3D.4,3,5