+ 2

Does a pointer stores any other value other than a variable address?

13th Dec 2017, 11:50 PM
Ahmad Labdo
Ahmad Labdo - avatar
2 Réponses
+ 2
No only the address, but it isn't usually of a variable. Most pointers have addresses of memory allocated off the heap via new.
14th Dec 2017, 12:36 AM
John Wells
John Wells - avatar
0
Nope.
14th Dec 2017, 2:15 AM
LunarCoffee
LunarCoffee - avatar