#include<iostream>using namespace std; int main(){ int *p = new int; *p = 10; delete p; *p = 10; cout << *p << endl; }
Standard input is empty
10
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!