I want to use the built-in qsort function (stdlib.h) to sort a two dimensional array say arr[10][2];
could someone help me write the compare function if arr[m][] goes before arr[n][] if arr[m][0]<arr[n][0]
|
Results 1 to 4 of 4
Thread: qsort (quick sort) functionThreaded View
|
Click Here to Expand Forum to Full Width |