b[j]:b[i]4、3,4,5,6,7,2,1,8,9,10C)5,4,3,2,1,6,7,8,9,1 D)10,9,8,7,6,5,4,3,2,1(35)有以下程序voidf(intb[]){inti;for(i=2;i<6;i++)b[i]*=2;}main(){inta[10]={1,2,3,4,5,6,7,8,9,10},i;f(a);for(i=0;i<10;i++)printf("%d,",a[i]);}程序运行后的输出结果是:A)1,2,3,4,5,6,7,8,9,10, B)1,2,6,8,10,12,7,8,9,10
5、,C)1,2,3,4,10,12,14,16,9,10, D)1,2,6,8,10,12,14,16,9,10,(36)有以下程序#includevoidf(charp[][10],intn) /* 字符串从小到大排序 */{chart[10]; inti,j; for(i=0;i0) {strcpy(t,p[i]); strcpy(p[i],p[j]); strcpy(p[i],t); }}main(
6、) {charp[5][10]={“abc”,”aabdfg”,”abbd”,”dcdbe”,”cd”};f(p,5); printf(“%d”,strlen(p[0]));}程序运行后的输出结果是:A)2 B)4 C)6 D)3(37)有以下程序voidf(int n,int *r){intr1=0; if(n%3==0) r1=n/3;else if(n%5==0) r1=n/5;else f(--n,&r1);*r=r1;}main(){intm=7,r; f(
7、m,&r); printf(“%d,r”);}程序运行后的输出结果是:A)2 B)1 C)3 D)0(38)有以下程序inta=4;intf(int n){int t=0; staticint a=5; if(n%2){int a=6; t+=a++;}else{int a=7;t+=a++;}return t+a++;}main(){int s=a,i=0;for(;i<2;i++) s+=f(i);printf(“%d”,s);}程序运行后的输出结果是:A)24
8、 B)28 C)32 D)36(39)以下程序的运行结果是:int k=0;voidfun(int m){ m+=k;k+=m;printf(“m=%d k=%d ”,m,k++);}main(){inti=4; f