0
Can anyone explain me about static and dynamic memory and their usages?
2 Answers
+ 4
Static memory, also known as the stack, is a pointer moving back and forth. So you must delete your objects in the order you declared them.
Dynamic memory, also known as the heap, doesn't have this limitation, but it's slower.