Understanding qsort() function
问题 int compare (const void * a, const void * b) { return ( (int) (*(float*)a - *(float*)b) ); } When I want to use qsort function, I should write a compare function in this form as I understood. So, why we are using void before the parameters of compare function? And, is this compare function standard with its parameters and code in curly braces or can we simply change the code and even parameters through our wishes? 回答1: No, you can not change the parameters or the return type. But of course