题目内容:
有以下程序#include<stdio.h>voidfun(int*a,int n)/*fun函数的功能是将a所指数组元素从大到小排序*/{ int t,i,j;for(i=0;i<n一1;j++)for(j=i+1;j<n;j++)if(a[i]<a[i]){t=aEi];aEi]=aEi];aEj]=t;}}main(){intc[10]={1,2,3,4,5.6,7,8,9,0),i;fun(c+4.6):for(i=0;i<10;i++)printf(”%d,”,c[i]);printf(”n”):}}程序运行的结果是( )。A.1,2,3,4,5,6,7,8,9,0,
B.0,9,8,7,6,5,1,2,3,4,
C.0,9.8,7.6,5,4,3,2,1.
D.1,2,3,4,9,8,7,6,5,0,
参考答案:
答案解析: