+ 1

can someone explain in simple words the Dynamic Memory Allocation, what is the "new" code and how to use it?

11th Oct 2016, 8:52 AM
Raul
Raul - avatar
6 ответов
+ 5
You have to study more with the basic concepts first😃
11th Oct 2016, 4:41 PM
aksdeo5
aksdeo5 - avatar
+ 5
Then make sure that you don't have any doubts in pointers... Once you comprehend the concept of pointers cent percent then you won't face any trouble to understand DMA...😃 Good luck...👍
12th Oct 2016, 11:03 AM
aksdeo5
aksdeo5 - avatar
0
Dynamic memory allocation is used to allocate memory at run time (not at compile time). Memory is allocated using new keyword:- example int *p= new int; here new keyword allocates the memory(2 bytes) and store the address in pointer p
11th Oct 2016, 9:11 AM
Mayank
0
if you are satisfied please like
11th Oct 2016, 9:12 AM
Mayank
0
i'm not sure I'm getting it
11th Oct 2016, 9:38 AM
Raul
Raul - avatar
0
I have haha. I studied a whole semester of c++ but I still don't get that concept.
11th Oct 2016, 8:27 PM
Raul
Raul - avatar