Dynamic memory allocation allows your program to obtain more memory space while running, or to release it if it’s not required.
In simple terms, Dynamic memory allocation allows you to manually handle memory space for your program.
Although, C language inherently does not have any technique to allocate memory dynamically, there are 4 library functions under “stdlib.h” for dynamic memory allocation.
The name malloc stands for “memory allocation”.
ptr = (cast-type*) malloc(byte-size)
The name calloc stands for “contiguous allocation”.
ptr = (cast-type*)calloc(n, element-size);
You must explicitly use free() to release the space.
syntax of free()
ptr = realloc(ptr, newsize);
To learn more in detail call us 9825618292
Mail to firstname.lastname@example.org
Visit us @ https://tccicomputercoaching.wordpress.com/