"binaya" <mo******@hotmail.com> wrote in message news:1c**************************@posting.google.c om...
delete p;
delete p;
what actually happens behind the scene ?
Undefined behavior. Depends on your environment. Perhaps it detects
you're freeing memory twice at runtime and issues an exception, perhaps
it just hoses up the allocation structures. Maybe it is a disaster of biblical proportions.
Fire and brimstone coming down from the skies. Rivers and seas boiling!
40 years of darkness, earthquakes, volcanos. The dead rising from the grave!
Human sacrifice, dogs and cats, living together... mass hysteria!