I came across a piece of code which is as below
qsort(array, 10, sizeof(int), sort);
Here sort is again a function. But I was always under the impression that any function which is called should have () after the function name or was I missing something.
I just wanted to know how will this work and what are the differences in calling functions like these. Thanks!
this passes a pointer to the function “sort” so that the function “qsort” can call this function.