[单选题]有以下程序: void fun(int *a,int i,int i) { int t; if(i<j) { t==a[i];a[i]=a[j];a[i]=t; i++; j--; fun(a,i,j); } } main() { int x[]={2,6,1,8),i; fun(x,0,3), for(i=0;i<4;i++) printf("%2d",x[i]); printf("/n"); } 程序运行后的输出结果是( )。A.1268B.8621C.8162D.8612
[单选题]有以下程序: void f(int*q) {int i=0; for(;i<5;i++)(*q)++; } main() {int a[5]={1,2,3,4,5},i; f(A); for(i=0;i<5;i++)printf("%d,",a[i]); } 程序运行后的输出结果是( )。A.2,2,3,4,5,B.6,2,3,4,5,C.1,2,3,4,5,D.2,3,4,5,6,
[单选题]有以下程序void f(int *q){ int i=0;for( ; i<5;i++)(*q)++;}main( ){ int a[5]={1,2,3,4,5},i;f(a);for(i=0;i<5;i++)printf("%d,",a[i]);}程序运行后的输出结果是A.)2,2,3,4,5,B.)6,2,3,4,5,C.)1,2,3,4,5,D.) 2,3,4,5,6,
[单选题]有以下程序 void f(int *q) { int i=0; for(;i<5;i++) (*q)++; } main() { int a[5]={1,2,3,4,5},i; f(a); for(i=0;i<5;i++)printf("%d,",a[i]); } 程序运行后的输出结果是A.2,2,3,4,5,B.6,2,3,4,5,C.1,2,3,4,5,D.2,3,4,5,6,
[单选题]有以下程序void f(int *q){ int i=0;for(;i<5;i++) (*q)++;}main( ){ int a[5]={1,2,3,4,5},i;f(a);for(i=0;i<5;i++) printf("%d,",a[i]);}程序运行后的输出结果是A.2,2,3,4,5,B.6,2,3,4,5,C.1,2,3,4,5,D.2,3,4,5,6,
[单选题]有以下程序void f(int *q){int i=0;for(;i<5; i++) (*q)++;}main(){int a[5] ={1,2,3,4,5}, i;f(a);for(i=0;i<5; i++) printf("%d,", a[i]);}程序运行后的输出结果是A.2,2,3,4,5,B.6,2,3,4,5,C.1,2,3,4,5,D.2,3,4,5,6,
[单选题]有以下程序void f(int *q){int i=0;for(;i<5; i++) (*q)++;}main(){int a[5] ={1,2,3,4,5}, i;f(a);for(i=0;i<5; i++) printf("%d,", a[i]);}程序运行后的输出结果是A.2,2,3,4,5,B.6,2,3,4,5,C.1,2,3,4,5,D.2,3,4,5,6,
[单选题]有以下程序 void fun(int*a,int i,int j) { int t; if(i<j) { t=a[i];a[i]=a[j];a[j]=t; i++; j--; fun(a,i,j); } } main() { int x[]={2,6,1,8},i; fun(x,0,3); for(i=0;i<4;i++) printf("%2d",x[i]); printf("/n"); } 程序运行后的输出结果是A.1 2 6 8B.8 6 2 1C.8 1 6 2D.8 6 1 2
[单选题]若有以下程序: inclcude void main(){int i;int a[3] [3]= { 1,2,3,4,5,6,7,8,9 };若有以下程序:# inclcude <iostream.h>void main(){int i;int a[3] [3]= { 1,2,3,4,5,6,7,8,9 };for(i=0;i<3;i++)cout<<a[2-i] [i]<<" ";cout<<end1;}执行后的输出结果是( )。A.1 5 9B.7 5 3C.3 5 7D.5 9 1
[单选题]有以下程序:void main(){ int i=10,j=1;printf("%d,%d/n",2*i--,++j*2);}执行后输出的结果是()。A)20,4 B)10,2C)20,1 D)10,4