Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.29 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main(int argc, char *argv[])
  6. {
  7.     int val = 10;
  8.     int* ptr1 = &val;
  9.  
  10.     // YO DAWG I HERD YOU LIEK POINTERS SO I PUT POINTER IN
  11.     // YO POINTER SO YOU CAN DEREFERENCE WHILE YOU DEREFERENCE
  12.     int** ptr2 = &ptr1;
  13.     cout<<**ptr2;
  14.  
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement