0

What is memory management operator?

PLEASE!!! Explain this in a very basic language and also it's type .

4th Mar 2018, 7:02 PM
Purvank Bhiwgade
Purvank Bhiwgade - avatar
1 ответ
+ 2
new and delete are memory management operators. Used to allocate memory and deallocate memory on the heap. For example if you want to create an array but you don't know how big it's going to be at first. You use new to create the space as you need it. Delete is used to free the space taken by the array when you are done with it.
4th Mar 2018, 7:11 PM
Karl T.
Karl T. - avatar