What is the diffrence between static and dynamic memory? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

What is the diffrence between static and dynamic memory?

Please explain in cases of arrays and structures.

25th Nov 2017, 4:39 AM
Infinity
Infinity - avatar
3 Answers
+ 4
Static memory: We can store data permanently. it holds data until we delete it manually. secondary memory is example of static memory. example hard disc, pen drive, CD, DVD. Dynamic memory:- it stores data temporarily. usually it is fast in speed. it is costly than static memory. it is used because it access data faster in comparison of static memory. Ram and cache is example of dynamic memory.
25th Nov 2017, 4:47 AM
Faisal Rahman
Faisal Rahman - avatar
+ 4
@Yash Thatte Thats what the links are for...
25th Nov 2017, 7:58 AM
Kinshuk Vasisht
Kinshuk Vasisht - avatar