SHARE
TWEET

Untitled

a guest Jun 25th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int* k;
  2. k = new int(5);
  3.  
  4. int* d = k;
  5.  
  6. cout<<"d's : "<<d<<endl;
  7. cout<<"k's : "<<k<<endl;
  8.  
  9. delete d;
  10.  
  11. cout<<"d's : "<<d<<endl;
  12. cout<<"k's : "<<k<<endl;
  13.  
  14. delete k;
  15.  
  16. cout<<"d's : "<<d<<endl;
  17. cout<<"k's : "<<k<<endl;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top