Explain the concept of dynamic memory allocated with an example | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Explain the concept of dynamic memory allocated with an example

12th May 2017, 4:45 AM
Web Anshu
Web Anshu - avatar
2 Answers
+ 5
you allocate memory dynamically with the keyword new
12th May 2017, 6:05 AM
‎ɐısıօլɐ
‎ɐısıօլɐ - avatar
+ 3
Dynamic memory allocation means that the code ask OS at runtime for reserve memory for its use: http://stackoverflow.com/questions/12161774/when-do-i-need-dynamic-memory
12th May 2017, 7:49 AM
visph
visph - avatar