0
I’m studying on pointers in c++, I still don’t quite understand how to use but I already have a notion, and one of the utilities I’ve seen is "dynamic allocation". I’ve heard of it in C language with malloc()
and free()
, but I did not find any content in Portuguese speaking of new
and delete
(I saw in English, but my English is not yet of this level)
My doubts are: How it works new
and delete
? And when to use?