← Quiz: Function Pointers in C: all 15 questions
Quiz: Function Pointers in C · Question 6 of 15
What is a callback?
What is a callback?
- A.A function that calls itself
- B.A function that returns a function
- C.A function passed to another function, which calls it when needed
- D.A function stored in a header file
Answer & explanation
Correct answer: A function passed to another function, which calls it when needed
The receiving function stays general; the caller supplies the specific behaviour.
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 →