Exception while deleting an object
void g() { throw "Exception"; } void f() { int* i = new int(0); g(); delete i; } int main() { f(); return 0; }
In the above code what can be the problem ?
void g() { throw "Exception"; } void f() { int* i = new int(0); g(); delete i; } int main() { f(); return 0; }
In the above code what can be the problem ?
Comments
Post a Comment