The function malloc() is declared in which header file?
-
A
stdio.h
-
B
malloc.h
-
C
memory.h
-
D
stdlib.h
Correct answer
Correct answer
D. stdlib.h
16 views
Explanation
malloc, calloc, realloc and free are all declared in stdlib.h.
Reference
Asked in: NTS, PPSC IT, Campus Interviews
Doubts & discussion
Not sure why the answer is D? Ask here and get an explanation.
Ask a doubt about this MCQ