int main()
{
int *ptr=new int (100);
cout<<"p's add is "<<ptr<<endl;
cout<<"value in p is"<<*ptr<<endl;
delete ptr; // deallocation of ptr;
cout<<"p's add is "<<ptr<<endl;
cout<<"value in p is"<<*ptr<<endl;
return 0;
}
Even the delete operator is executed, the last two output statements are working same the first two output statements..
How is this possible...?????????????????