|
|
|
|
(int*)a and (int*)a are casting the passed in parameters to integer pointers, and then the outer * dereferences that so *(int*)a - *(int*)b means value stored in memory pointed to by a minus the value stored in memory pointed to by b. The result of this calculation is returned to the calling function. In this case, qsort() uses it to decide how to order values.