Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct node {
  5. int p[5];
  6. };
  7.  
  8. int main(int argc, char** argv) {
  9. node* p[5];
  10. p[3] = new node;
  11. int x = 3;
  12.  
  13. p[x]->p[x]=x;
  14.  
  15. cout << p[x]->p[x];
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement