Advertisement
orfeasel

Address-of operator

Dec 22nd, 2015
6,397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int x = 1; //My variable
  2.  
  3. cout << x << "\n"; //Print the value of x
  4. cout << &x << "\n"; //Print the address-of x
  5.  
  6. //The following line stops the application the user presses a button
  7. system("pause");
  8. return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement