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

15th Jun 2018, 1:11 PM
KLS_Coder
KLS_Coder - avatar
1 Resposta
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. :)
15th Jun 2018, 1:25 PM
Dennis
Dennis - avatar