Find in Knowledge Base
Stack vs Heap
stack vs heap
Stack vs Heap Memory Allocation – GeeksforGeeks
In C++, pointers are your only way to access the Heap. with ‘ new’ keyword.
// [Stack] [Heap]
// | |
Enemy* myPtr = new Enemy();
stack vs heap
Stack vs Heap Memory Allocation – GeeksforGeeks
In C++, pointers are your only way to access the Heap. with ‘ new’ keyword.
// [Stack] [Heap]
// | |
Enemy* myPtr = new Enemy();