typedef int (*PFI)(char *, char *)creates ___________
Answer: A
Correct answer: type PFI, for pointer to function (of two char * arguments) returning int
Read the declarator from the name outward, respecting the parentheses. PFI is inside (*PFI), so it is a pointer; the (char *, char *) that follows makes it a pointer to a function taking two char *; and the leading int gives the return type. Without the parentheses, int *PFI(char *, char *) would instead be a function returning int *.
Please log in or register to report this question.