🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.It makes calls faster
  2. B.It is required for qsort
  3. C.It gives a long pointer type a short readable name to use for variables, parameters and arrays
  4. 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 →