+ 1
Guys please tell Me Dynamic memory in C++ easy language . I am having problem in learning Dynamic Memory
Please tell me what is dynamic memory
4 ответов
+ 14
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.
https://www.sololearn.com/learn/CPlusPlus/1632/?ref=app
+ 1
https://www.google.com/amp/s/www.geeksforgeeks.org/what-is-dynamic-memory-allocation/amp/
Read this cool article to understand it
+ 1
Dynamic memory means the memory that is alloted during the execution of program. Actually what happens in static memory allocation, you must have a prior knowledge of memory consumption by the program. So to manage the resources efficiently and when we do not know how much amount of memory would be needed for the program beforehand, we use dynamic memory allocation.
0
This may help you.
https://code.sololearn.com/cJtlb1q8b4Mq/?ref=app