📜  qsort in - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:40.734000             🧑  作者: Mango

代码示例1
#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);
   }