Can reassigning a C style string cause a memory leak? Like so:
char * s = "Hello!";
s = "Hello, world!";
My question may appear as stupid, but please bear with me; I am currently still a dummie in C++.
In the second line of code, the C style string s is longer, so does it have it internally reallocate memory? Does this cause a memory leak? And do I have to call delete?
Thanks