English, asked by Anonymous, 11 months ago

What is a malloc?
I need help

Answers

Answered by Raunak1432
2

Explanation:

In C, the library function malloc is used to allocate a block of memory on the heap. The program accesses this block of memory via a pointer that malloc returns. When the memory is no longer needed, the pointer is passed to free which deallocates the memory so that it can be used for other purposes.

Answered by Anonymous
5

Answer:

hii mate...

C dynamic memory allocation refers to performing manual memory management for dynamic memory allocation in the C programming language via a group of functions in the C standard library, namely malloc, realloc, calloc and free.

Similar questions