1. Home
  2. Computer Science MCQs
  3. C Programming
  4. The function malloc() is declared in which header file?

Added 30 Nov -0001

The function malloc() is declared in which header file?

  1. stdio.h
  2. malloc.h
  3. memory.h
  4. stdlib.h Correct answer

Correct answer

D. stdlib.h

16 views

MCQSEXAM

Explanation

malloc, calloc, realloc and free are all declared in stdlib.h.

Reference

Asked in: NTS, PPSC IT, Campus Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is D? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More C Programming MCQs

Practise all C Programming MCQs

Similar MCQs