+ 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

6th Jun 2020, 5:50 AM
Vedant Nandwana 📴📵
Vedant Nandwana 📴📵 - avatar
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
6th Jun 2020, 6:03 AM
💕₽ΔŘI💕
💕₽ΔŘI💕 - avatar
+ 1
https://www.google.com/amp/s/www.geeksforgeeks.org/what-is-dynamic-memory-allocation/amp/ Read this cool article to understand it
6th Jun 2020, 5:52 AM
minirkk
minirkk - avatar
+ 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.
6th Jun 2020, 6:01 AM
Hardik Sharma
Hardik Sharma - avatar
8th Jun 2020, 6:56 AM
Naveed
Naveed - avatar