下列程序中函数 sort()的功能是对数组 a 中的数据进行由大到小的排序。程序运行后的输出结果是()includevoid sort(int a[] ,int ll){ int i ,j ,t;for(i=0;ifor(j=j+1+1;jif(a[i]{t=a[i];a[i]=a[j];a[j]=t;}}main(){ int a[10] 一{1 ,2,3,4,5,6,7,8,9,10} ,i;
A.1 ,2,3,4,5,6,7,8,9,10, B.10,9,8,7,6,5,4,3,2,1, C.1 ,8,7,6,5,4,3,2,9,10, D.1 ,2,10,9,8,7,6,5,4,3,