单选题 C语言
题号 #149436

以下程序中函数sort的功能是对a数组中的数据进行由大到小的排序 
void sort(int a[],int n) 
{int i,j,t; 
for(i=0;i 
for(j=i+1;j 
if(a[i] 
} 
main() 
{int aa[10]={1,2,3,4,5,6,7,8,9,10},i; 
sort(&aa[3],5); 
for(i=0;i<10;i++)printf("%d,",aa[i]); 
printf("\n"); 
} 
程序运行后的输出结果是

进入在线模考

参考答案

C

答案解析

暂无解析

你可能感兴趣的试题

找试题 · 找答案 · 找资料 在线模考