有以下程序:
void sort(int a[],int n)
int i,j,t;
for(i=0;i<n;i++)
for(j=n-i;j<n/2;j++)
if(a[i]<a[j]) t=a[i];a[i]=a[j];a[j]=t;
void main()
int aa[10]=1,2,3,4,5,6,7,8,9,10,i;
sort(aa+2, 5);
for(i=0;i<10;1++) printf("%d,",aa[i]);
printf("\n");
程序运行后输出的结果是( )。
A.1,2,3,4,5,6,7,8,9,10,
B.1,2,7,6,3,4,5,8,9,10,
C.1,2,7,6,5,4,3,8,9,10,
D.1,2,9,8,7,6,5,4,3,10,