柠檬试题库
search
首页 计算机 公务员 驾照 关于

有以下程序: # include 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
  • A.2,3,1,6,8,7,5,4,10,9,
  • B.10,9,8,7,6,5,4,3,2,1,
  • C.1,2,3,4,5,6,7,8,9,10,
  • D.10,9,8,7,6,1,2,3,4,5,

热度🔥1,208
参考答案:C
解析:打开微信小程序查看本题解析