D
Dimitris Kamenopoulos
A wrote:
Yes, but the array is created by the compiler and is statically allocated.
You should not delete it.
char* ptr = "a string";
Is ptr a pointer to a dynamically created object for which i must use the
delete operator to deallocate memory? I'm sure the "a string" part creates
an array of characters, and returns a pointer to the first element.
Yes, but the array is created by the compiler and is statically allocated.
You should not delete it.