0
Erroe in the guide for c++
The string " new int; " isn't correct in the c++ "DATA TYPE, ARRAYS, POINTERS" chapter in the DYAMIC MEMORY paragraph
1 Respuesta
0
What's not correct about it?
The chapter talks about 'new' allocating and returning a memory address on the heap which is exactly what "new int;" does.
Sure, it's not stored in a variable anywhere so you can't delete it, but that's not the point here. :)