What is wrong with this code?
<pre><code>int main()
{
    char *name = new char[7];
    name = "Dolphin";
    cout &lt;&lt; "Your name is : " &lt;&lt; name &lt;&lt;endl;
    delete [] name;
}
</code></pre>

<p>Why doesn't the VC++ compiler complain?</p>
