qsort() can’t understand the detail in C

Why when we use qsort(), int(*compar)(const void*,const void*) haven’t add any paraments in, but can also do their functions?

Such as this :

double vals[NUM];

Source: c#

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.