What happens when you make call “delete this;” ??
By on May 3, 2007 in C/C++ Interview Questions
The code has two built-in pitfalls. First, if it executes in a member function for an
extern, static, or automatic object, the program will probably crash as soon as the delete
statement executes. There is no portable way for an object to tell that it was instantiated
on the heap, so the class cannot assert that its object [...]


