Skip to content
Goktug Ulvan
  • Portfolio
  • Knowledge Base
  • UE5 Console Variables and Commands
Goktug Ulvan
  • Portfolio
  • Knowledge Base
  • UE5 Console Variables and Commands
Find in Knowledge Base
< All Topics
  • Main
  • Coding
  • Stack vs Heap

Stack vs Heap

Bygoktugulvan@gmail.com

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();

  • Portfolio
  • Knowledge Base
  • UE5 Console Variables and Commands