0
What is purpose of dynamic memory allocation?
I understand there are both static and dynamic memory, but what is the good deal of using the dynamic one and manage it's memory allocation?
1 ответ
+ 10
http://www.dreamincode.net/forums/topic/163885-why-use-dynamic-memory-allocation/
Apart from using dynamic memory allocation when you are (un)aware of how much memory you may require during compile time, there are things you can do when you allocate memory to the heap, and cannot do when memory is on the stack.