Which function is used to dynamically allocate memory in C?

Which function is used to dynamically allocate memory in C?
A . calloc()
B . free()
C . realloc()
D . malloc()

Answer: D

Explanation:

malloc() is used to dynamically allocate memory in C.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments