Pointers and assignment
<p>Why is</p>

<pre><code>int *a = new int[10];
</code></pre>

<p>written as</p>

<pre><code>int *a;
a = new int[10];
</code></pre>

<p>instead of</p>

<pre><code>int *a;
*a = new int[10];
</code></pre>

<p>?</p>

<p>The way I see it, in the second block of code you're saying a, which was a pointer variable, is now an array.  In the third block of code you're saying the thing a points to is now an array.  Why does the second make more sense than the third?</p>
