New course! Every coder should learn Generative AI!
Try a free lesson+ 8
Dynamic memory is used to allocate memory while your programm is running, Mainly involves the heap.
It is important to free up spaces as much as possible when running the application, so the machine doesnt require so much RAM to run.
Also good to allocate your stuff properly so that it becomes easier to identify stuff.