I have below code which is crashing.
aClass *ptr_obj = new aClass[5];
delete ptr_obj;
I know, ptr_obj is to be deleted using delete[], but my question here is why it crashes when I use delete. I was thinking it will call destructor for first object instead of crash. Please help.