Answers for "malloc program in c"

C++
0

malloc c include

<stdlib.h>
Posted by: Guest on September-29-2021
0

what is the use of malloc in c

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.
Posted by: Guest on July-08-2020
0

malloc c++ program

void* malloc(size_t size);
Posted by: Guest on November-05-2020

Browse Popular Code Answers by Language