Computer Science, asked by rajeshkumarmukulraj, 13 hours ago

To deal locate memory in runtime which function is used in Ctanguage and where it is defined?​

Answers

Answered by ri7710808
0

Answer:

This is known as dynamic memory allocation in C programming. ... To allocate memory dynamically, library functions are malloc() , calloc() , realloc() and free() are used. These functions are defined in the <stdlib. h> header file.

malloc() function is used for allocating block of memory at runtime. This function reserves a block of memory of the given size and returns a pointer of type void . This means that we can assign it to any type of pointer using typecasting. If it fails to allocate enough space as specified, it returns a NULL pointer.

I think I could answer the question. Have a nice day.If I made any mistake pls forgive me

Similar questions