Does a pointer stores any other value other than a variable address? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answers
+ 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