Dynamic memory | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Dynamic memory

Why we use exactly dynamic memory?

22nd Dec 2016, 10:27 PM
Xara
Xara - avatar
1 Answer
+ 1
You use dynamic memory to manually determine how much memory you want to allocate, when to allocate it and when to free it. It gives you more control and less gap between you and your hardware, in contrast to static memory allocation where the memory is allocated for your variables when the program starts.
23rd Dec 2016, 1:07 AM
Yuval Keren
Yuval Keren - avatar