What is the difference between these uses of pointers?
<pre><code>int *p1=10;
</code></pre>

<p>and</p>

<pre><code>int *p2;
p2=new int;
*p2=10;
</code></pre>

<p>What is the difference between these two variables?
Aren't both the variable allocated in the heap?</p>
