← Quiz: Function Pointers in C: all 15 questions
Quiz: Function Pointers in C · Question 10 of 15
Why does a typedef help with function pointers?
Why does a typedef help with function pointers?
- A.It makes calls faster
- B.It is required for qsort
- C.It gives a long pointer type a short readable name to use for variables, parameters and arrays
- D.It converts a function pointer to a normal pointer
Answer & explanation
Correct answer: It gives a long pointer type a short readable name to use for variables, parameters and arrays
typedef int (*Rule)(int); lets you write Rule r; instead of repeating the syntax.
Can you get the rest right without peeking?
Take the timed Quiz: Function Pointers in C quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →