Advertisement
kasztof

Untitled

Oct 19th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.18 KB | None | 0 0
  1. int *pi_value = new int[5];
  2.     pi_value[1] = 5;
  3.     int *pi_copy = new int[5];
  4.     pi_copy = pi_value;
  5.  
  6.     cout << pi_copy[1];
  7.     Sleep(10000);
  8.  
  9.     delete[] pi_value;
  10.     delete[] pi_copy;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement