有以下程序
Struct S{int n; int a[20];};
Void f(struct S *p)
{ int i,j,t;
For(i=0;in-1;i++)
For(j=i+1;jn;j++)
If(p->a[i]>p->a[j]) { t=p->a[i]; p->a[i]=p->a[j]; p->a[j]=t;}
}
Main()
{ int i;
Struct S s={10,{2,3,1,6,8,7,5,4,10,9}};
F(&s);
For(i=0;i<s.n;i++)printf("%d,",s.a[i]);
}
程序运行后的输出结果是______。
A.1,2,3,4,5,6,7,8,9,10, B.10,9,8,7,6,5,4,3,2,1, C.2,3,1,6,8,7,5,4,10,9, D.10,9,8,7,6,1,2,3,4,5,正确答案A