Which declaration makes pf a pointer to a function that takes two int arguments and returns int?
Correct answer D. int (*pf)(int, int);
Explanation
The parentheses around *pf make pf a pointer first, and that pointer points to a function taking (int, int) and returning int. Without them, int *pf(int, int); declares a function named pf that returns a pointer to int, which is a different thing entirely. Function pointers are used for callbacks, such as the comparison function passed to qsort.
Answer checked How we write and check questions
Discussion