有人可以帮助我理解如何使用合并排序的递归代码完成排序
void merge_sort(int arr[],int low,int up)
{
int mid;
int temp[MAX];
if(low<up)//if more than one element
{
mid=(low+up)/2;
merge_sort(arr,low,mid);//sort lower array
merge_sort(arr,mid+1,up);//sort upper array
merge(arr,temp,low,mid,mid+1,up);//merge the two arrays to temp array
copy(arr,temp,low,up);
}
}