fork download
  1. #include<iostream>
  2. using namespace std;
  3.  
  4. int main(){
  5.  
  6. int *p = new int;
  7.  
  8. *p = 10;
  9.  
  10. delete p;
  11.  
  12. *p = 10;
  13.  
  14. cout << *p << endl;
  15.  
  16. }
Success #stdin #stdout 0.02s 2856KB
stdin
Standard input is empty
stdout
10