George2
February 11th, 2003, 06:02 AM
Hi, everyone!
Look at the following codes,
--------
const char* p = "12345";
char* q = "54321";
--------
If I want to release the memory, should I use
--------
delete[] p;
delete[] q;
--------
or should I use
--------
delete p;
delete q;
--------
Thanks in advance,
George
Look at the following codes,
--------
const char* p = "12345";
char* q = "54321";
--------
If I want to release the memory, should I use
--------
delete[] p;
delete[] q;
--------
or should I use
--------
delete p;
delete q;
--------
Thanks in advance,
George