用函数实现对n个元素的数组的排序。

用函数实现对n个元素的数组的排序。
【正确答案】:将数组和n作为参数同时传递给处理函数。 void sort(int array[],int n) {int i,j,k,t; for(i=0,i