What does & do? I was reading something and they made a variable called num. Then in a different function they had it &num. does it point to it or what?
[solved] -C++ Help
Started by
TheUnforgiven512
, Dec 22 2005 05:12 PM
4 replies to this topic
#1
Posted 22 December 2005 - 05:12 PM
#2
Posted 23 December 2005 - 12:07 AM
&num will give you the memory location where the variable num is stored.
cout<<#This will print the address.
Edited by Ckristian, 23 December 2005 - 12:09 AM.
#4
Posted 23 December 2005 - 04:25 PM
Okay thanks for the info. I understand it now
#5
Posted 23 December 2005 - 04:27 PM
Original question has been answered we are re-solving this thread, if you have any further questions please start a new topic.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users