← Quiz: Dynamic Memory: all 10 questions
Quiz: Dynamic Memory · Question 5 of 10
Which header declares malloc and free?
Which header declares malloc and free?
- A.stdio.h
- B.string.h
- C.stdlib.h
- D.memory.h
Answer & explanation
Correct answer: stdlib.h
Dynamic memory functions are in stdlib.h.
Can you get the rest right without peeking?
Take the timed Quiz: Dynamic Memory quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →