This is a question based on answers from question:
const char myVar* vs. const char myVar[]
const char* x = "Hello World!";
const char x[] = "Hello World!";
I understand the difference now, but my new questions are:
(1) What happens to the "Hello World" string in the first line if I reassign x? Nothing will be pointing to it by that point - would it be destroyed when the scope ended?
(2) Aside from the const-ness, how are the values in the two examples differently stored in memory by the compiler?