Ara
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