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.

Latest CLP-12-01 Practice Questions with 160 Q&As

Updated Study Material | Instant Download | Detailed Answers and Explanations

Subscribe
Notify of
guest
0 Comments