Char Array VS Char *
<p>This is a question based on answers from question:</p>

<p><a href="http://stackoverflow.com/questions/7082175/const-char-myvar-vs-const-char-myvar/7082201#7082201">const char myVar* vs. const char myVar[]</a></p>

<pre><code>const char* x = "Hello World!";
const char  x[] = "Hello World!";
</code></pre>

<p>I understand the difference now, but my new questions are:</p>

<p>(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?</p>

<p>(2) Aside from the const-ness, how are the values in the two examples differently stored in memory by the compiler?</p>
