You are on page 1of 1

Dynamic Memory Allocation

In a standard C program the compiler allocates a


memory for all variables at the compilation
time this is also known as the static memory
allocation.
This memory is fixed and cannot be increased or
decreased after allocation. If more memory is
allocated than requirement, then memory is
wasted.
If less memory is allocated than requirement, then
program will not run successfully.
So exact memory required space must be known in
advance.

You might also like