0

what is dynamic memory with very easy language ?

17th Sep 2016, 4:37 PM
prateek nandwana
2 Antworten
+ 2
Dynamic memory is allocated on the fly during the execution and this allocation can persist between function calls. In C++, you use the keyword new to allocate memory dynamically, and delete to free it. int *p; p = new int(42); cout << *p << endl; delete p;
17th Sep 2016, 6:15 PM
Zen
Zen - avatar
+ 1
dynamic memory is the memory you can allocate or free on your own.
18th Sep 2016, 2:23 AM
kiwiyou
kiwiyou - avatar