📅  最后修改于: 2022-03-11 15:04:40.734000             🧑  作者: Mango
#include
int cmpfunc (const void * a, const void * b) {
return ( *(int*)a - *(int*)b );
}
int main () {
//n is number of elements in arr(size f that arr)
qsort(arr, n, sizeof(int), cmpfunc);
}