Advertisement
Guest User

Untitled

a guest
Mar 27th, 2015
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #include <cstdlib>
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     int int1 = 5;
  9.     int int2 = 8;
  10.     int* ptr = &int1;
  11.     int &ref = *ptr;
  12.     cout << int1 << int2 << *ptr << ref << endl;
  13.     system("PAUSE");
  14.     return EXIT_SUCCESS;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement