Advertisement
Felanpro

usage of pointers

May 27th, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.15 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.  
  8.     int x = 12;
  9.     int *pointer = &x;
  10.  
  11.     *pointer = 5;
  12.  
  13.     cout << x << endl;
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement