I am having trouble understanding qsort C++ routine.
The last parameter of qsort. why that function return *ia - *ib
return Minus ? I did not found any document anywhere ?
Please help ?
Code:/* qsort int comparison function */int int_cmp(const void *a, const void *b) { const int *ia = (const int *)a; // casting pointer types const int *ib = (const int *)b; // Here is the issue // return *ia - *ib; }