Hi, my question is what is wrong with this code?
I do not think if there is anything wrong here but the expert who posed this question thinks that there is definitely something conceptually wrong here?Code:class T; int main(){ T *p = 0; delete p; }
The only things that I can think of are:
if = or delete are overriden
does an overriden p matter here?