wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Which of the following header files must necessarily be included to use dynamic memory allocation functions?

A
stdio.h
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
dos.h
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
memory.h
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
stdlib.h
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution

The correct option is D stdlib.h
stdlib.h is a header file which stands for the standard library. It consists of the declaration for dynamic memory allocation functions such as malloc(), calloc(), realloc() and free.

flag
Suggest Corrections
thumbs-up
1
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Can Water Dissolve it All
Watch in App
Join BYJU'S Learning Program
CrossIcon