Dynamic memory allocation

Two Types of Memory Allocation

Created: 2022-06-25
Tags: #permanent


Pointers play a very imporant role here
as allocated memory can only be accessed through pointers.

  • Flexible memory size
  • ==assigns the memory in heap space ==.

?? When to use Dynamic Memory Allocation

  • When we're not sure how much data we're gonna use during runtime

Dynamic Data Structure that uses Dynamic Memory Allocation