+ 3
Why do you need dynamic memory?
I get how to use it but I don't see the point
4 Answers
+ 5
dynamic memory allocation is used when we don't know that how more variable mean data we want to enter so to extend the data we use dynamic memory allocation read the concept of link list for more clearness
+ 3
I am also a beginner and I simply think it can be used when you don't know how much memory size a variable will take. Such as declaring an array which you don't know how many elements it has. Am I correct?
+ 3
if you load a picture or other files you gonna use dynamic memory, and if you don't need it anymore you can release an reuse the memory for an other tasks
0
I think you are. Thanks!