We use malloc and calloc for
2017
We use malloc and calloc for
- A.
Dynamic memory allocation
- B.
Static memory allocation
- C.
Both dynamic and static memory allocation
- D.
None of the above
Attempted by 636 students.
Show answer & explanation
Correct answer: A
The malloc and calloc functions are used for dynamic memory allocation in C programming. They allocate memory at runtime from the heap.