Introduction of Dynamic Memory In C++

With the help of dynamic memory we can determine memory required by variable during run time.
 
We find two type memory allocation static memory allocation and dynamic memory allocation.
 
In static memory allocation there is wastage of memory, but with the help of dynamic memory allocation we can save the amount of memory.
 
we need a variable amount of memory that can only be determined during run time ? For illustration, in the case that we need some user input to decide the essential quantity of memory space.
 
. Dynamic memory allocation means memory allocation at run time.