void MergeSort(int* a, int n) { assert(a); int* tmp = (int*)malloc(sizeof(int) * n); if (tmp == NULL) { perror("malloc"); exit(-1); } _MergeSort(a, 0, n - 1,tmp); free(tmp); tmp = NULL; }
正在回顾一下归并排序,在网上找到这样的代码,请问它在干什么