I'm just learning about dynamic memory allocation, but there is one thing i'd like to be explained.
One use for dynamic allocation is for dynamic sized arrays, and thats clear to me. Another use is for normal objects.
What is a situation one should use it? Is it because normally objects are pushed on the stack, and could be popped of?
And how do you recognise a situation you should use dynamic memory allocation?