answered
In dynamic memory allocation,size of the memory allocated is not fixed whereas in static, it is fixed; in dynamic, the memory allocated for various variables during execution time but in static,its during compilation time; dynamic memory allocated stores its memory on heap and static memory allocation stores its data in data segment.