Dynamic Memory Allocation
Memory for your program will be allocated at the time of the execution of the program.Â
Â
Memory allocation determined at the time of the compiling is called as Static Memory Allocation
Â
Memory allocation determined at the time of the execution of the program is called as Dynamic Memory Allocation
Â
Static memory allocation is done inside Stack Memory
Â
Dynamic memory allocation is done inside Heap
Â
Dynamic Memory Allocation in C Language can be done using four predefined functions defined in stdlib.h
malloc()
calloc()
realloc()
free()
Â