有以下程序:
Void sort(int a[],int n)
{ int i,j,t;
For(i=0;i<n-1;i+=2)
For(j=i+2;j<n;j+=2)
If(a[i]<a[j]){t=a[i];a[i]=a[j];a[j]=t;}
}
Main()
{ int aa[10]={1,2,3,4,5,6,7,8,9,10},i;
Sort(aa,10);
For(i=0;i<10;i++) printf("%d,",aa[i]);
Printf("\n");
}
其输出结果是______。
A.1,2,3,4,5,6,7,8,9,10, B.10,9,8,7,6,5,4,3,2,1, C.9,2,7,4,5,6,3,8,1,10, D.1,10,3,8,5,6,7,4,9,2,正确答案C