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

  1. A.stdio.h
  2. B.string.h
  3. C.stdlib.h
  4. 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 →