Advertisement
kitch190

c++ print adress

Nov 1st, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. int n = 5;
  6. std::cout << "The address of variable n is: " << &n << std::endl;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement