quicksort array in c code example Example: quicksort in c int cmpfunc (const void * a, const void * b) { return ( *(int*)a - *(int*)b ); }