0

Can anyone explain me about static and dynamic memory and their usages?

8th Jun 2018, 5:09 PM
Julian Aung
Julian Aung - avatar
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.
8th Jun 2018, 8:42 PM
Timon Paßlick
8th Jun 2018, 5:11 PM
᠌᠌Code X
᠌᠌Code X - avatar