Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(int argc, char *argv[])
- {
- int val = 10;
- int* ptr1 = &val;
- // YO DAWG WE HERD YOU LIEK POINTERS SO WE PUT A POINTER IN
- // YO POINTER SO YOU CAN DEREFERENCE WHILE YOU DEREFERENCE
- int** ptr2 = &ptr1;
- cout<<**ptr2;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement