+ 3

Why do you need dynamic memory?

I get how to use it but I don't see the point

15th Jun 2016, 4:46 PM
The Little Stick Man
The Little Stick Man - avatar
4 Respostas
+ 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
16th Jun 2016, 11:21 AM
DJ Shiva & DJ Baba Shiv-Shekhar
DJ Shiva & DJ Baba Shiv-Shekhar - avatar
+ 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?
15th Jun 2016, 5:08 PM
钟震宇
钟震宇 - avatar
+ 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
17th Jun 2016, 7:49 AM
Moersy
Moersy - avatar
0
I think you are. Thanks!
15th Jun 2016, 7:40 PM
The Little Stick Man
The Little Stick Man - avatar