Possible Duplicate:
Is it necessary to call delete[] vs delete for char arrays?
char *p = new char[200];
delete p;
This kind of (I changed var name) code is from a big commercial project.
The third line. Is this right?
Should I change it or leave it there. Coz no bug report for this and this programs runs more than 4 years.
Thanks.
You have to use
delete[]since you usednew[], it’s not an alternative.