#include &lt;iostream&gt;    #include &lt;vector&gt;    using namespace std;    int main &#40;&#41;    &#123;        vector&lt;int&gt; myvector &#40;3&#41;;        for &#40;unsigned i = 0; i &lt; myvector.size&#40;&#41;; i++&#41;        myvector.at&#40;i&#41; = i;        for &#40;unsigned i = 0; i &lt; myvector.size&#40;&#41;; i++&#41;        cout &lt;&lt; ' ' &lt;&lt; myvector.at&#40;i&#41;;        return 0;    &#125;
A. 1 2 3
B. 0 1 2
C. 1 2 3 4
D. None of the mentioned
Answer:A
#include &lt;iostream&gt;    #include &lt;vector&gt;    using namespace std;    int main &#40;&#41;    &#123;        vector&lt;int&gt; myvector &#40;3&#41;;        for &#40;unsigned i = 0; i &lt; myvector.size&#40;&#41;; i++&#41;        myvector.at&#40;i&#41; = i;        for &#40;unsigned i = 0; i &lt; myvector.size&#40;&#41;; i++&#41;        cout &lt;&lt; ' ' &lt;&lt; myvector.at&#40;i&#41;;        return 0;    &#125;
A. 1 2 3 B. 0 1 2 C. 1 2 3 4 D. None of the mentioned
Explanation:In this program, We are pushing the values into the vector from 0 to 3 by using for loop.