top of page

Stack vs Heap

  • koraylimancre
  • 14 Oca 2022
  • 1 dakikada okunur






Entities that are created without "new" keyword(calloc) are scoped and destructed after the scope ends which is called Stack Allocation. On the other hand, entities that are created with using the "new" keyword(malloc) are allocated on the heap(Dynamic Allocation) and do not get destructed automatically, manual destruction is required(except smart pointers)

which is called Heap Allocation.





Commenti


AREmoji_20220114_174931_50[6].gif

                Koray Liman

Cpp Lover, Game/Mobile App Developer

  • Instagram
  • Twitter

Creativity. Productivity. Vision.

Subscribe

Thanks for submitting!

©2023 by Jeff Sherman. Proudly created with Wix.com

bottom of page