楼上的答案加个#define N 5void sort(int *a){int i,j,temp;最后加点for(i=0;iprintf("%4d",a[i]);}void main(){int a[ ]={36,77,2,9,44}sort(a);}