what is difference between vector<int> v(N) and vector < int > v [N]?
<p>What is <code>vector&lt; int &gt; v(N)</code> ?</p>

<ol>
<li><p>Is it an array which can have the maximum size of <code>N</code> (like <code>vector&lt;int&gt; v</code>)?</p></li>
<li><p>is it same as <code>vector&lt;int&gt; v[N]</code>?</p></li>
</ol>

<p>I think it is the first one(correct me if I am wrong). </p>

<p>What is <code>vector&lt; vector&lt; int &gt; &gt; V(N)</code>? Is it like 2D array with maximum size <code>N</code>?
What is the difference between <code>vector &lt; int &gt; v[N]</code> and <code>vector&lt; vector&lt; int &gt; &gt;v(N)</code>? </p>