What is the difference between these two vector statements?
<p>[!!Correction made to the second code!!]</p>

<pre><code>vector&lt;int&gt; a;
vector&lt;int&gt;*p = &amp;a;
</code></pre>

<p>and </p>

<pre><code>vector&lt;int&gt;*b = new vector&lt;int&gt;();
</code></pre>

<p>I know that in first scenario, a is on stack and in second b is on heap. But, are there any other differences? Like memory consumed etc.</p>
