题目内容
若有以下程序: #include <stdio.h> void fun(int *s, int n1, int n2) { int i,j,t; i=n1; j=n2; while(i<j) t=s[i]; s[i]=s[j]; s[j]=t; i+ +; j--; } } main( ) { int a[10]={1,2,3,4,5,6,7,8,9,0},k; fun(a,0,3); fun(a,4,9); fun(a,0,9); for(k=0;k<10;k+ +) printf("%d",a[k]); printf("\n"); } 则程序的运行结果是______。
查看答案
搜索结果不匹配?点我反馈
更多问题