+ 1

What is dynamic memory

i am taking c++ course and i couldnt understand dynamic memory concept

13th Apr 2018, 1:27 PM
Jaafer Hazim
Jaafer Hazim - avatar
3 ответов
+ 4
Dynamic memory allocation in C/C++ refers to performing memory allocation manually by programmer. Dynamically allocated memory is allocated on Heap and non-static and local variables get memory allocated on Stack (Refer Memory Layout C Programs for details). [geeksforgeeks]
13th Apr 2018, 2:05 PM
᠌᠌Code X
᠌᠌Code X - avatar
+ 3
Dynamic memory is memory that is not automatically deleted. You must request it (e.g. new) and give it back (e.g. delete) manually. The dynamic memory is also called heap.
13th Apr 2018, 2:58 PM
Timon Paßlick
+ 1
Hey bro. it is so ez question. U may ask this question to google. :/
13th Apr 2018, 2:05 PM
stKhaDgar
stKhaDgar - avatar