The two key dynamic memory functions are malloc() and free() . The malloc() function takes a single parameter, which is the size of the requested memory area in bytes. It returns a pointer to the allocated memory. If the allocation fails, it returns NULL.
Which are the functions for dynamic memory allocation?
The two key dynamic memory functions are malloc() and free() . The malloc() function takes a single parameter, which is the size of the requested memory area in bytes. It returns a pointer to the allocated memory. If the allocation fails, it returns NULL.