+ 1
can someone explain in simple words the Dynamic Memory Allocation, what is the "new" code and how to use it?
6 Answers
+ 5
You have to study more with the basic concepts firstđ
+ 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...đ
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
0
if you are satisfied please like
0
i'm not sure I'm getting it
0
I have haha. I studied a whole semester of c++ but I still don't get that concept.