#include &lt;iostream&gt;    #include &lt;algorithm&gt;    #include &lt;vector&gt;    using namespace std;    int main &#40;&#41;     &#123;        vector&lt;int&gt; myvector &#40;5&#41;;        fill &#40;myvector.begin&#40;&#41;, myvector.begin&#40;&#41; + 4, 5&#41;;        fill &#40;myvector.begin&#40;&#41; + 3,myvector.end&#40;&#41; - 2, 8&#41;;        for &#40;vector&lt;int&gt; :: iterator it = myvector.begin&#40;&#41;;            it != myvector.end&#40;&#41;; ++it&#41;        cout &lt;&lt; ' ' &lt;&lt; *it;        return 0;    &#125;
A. 5 5 5 5 0
B. 8 8 8 8 0
C. 5 8 5 8 0
D. 5 5 5 5 5
Answer:A
#include &lt;iostream&gt;    #include &lt;algorithm&gt;    #include &lt;vector&gt;    using namespace std;    int main &#40;&#41;     &#123;        vector&lt;int&gt; myvector &#40;5&#41;;        fill &#40;myvector.begin&#40;&#41;, myvector.begin&#40;&#41; + 4, 5&#41;;        fill &#40;myvector.begin&#40;&#41; + 3,myvector.end&#40;&#41; - 2, 8&#41;;        for &#40;vector&lt;int&gt; :: iterator it = myvector.begin&#40;&#41;;            it != myvector.end&#40;&#41;; ++it&#41;        cout &lt;&lt; ' ' &lt;&lt; *it;        return 0;    &#125;
A. 5 5 5 5 0 B. 8 8 8 8 0 C. 5 8 5 8 0 D. 5 5 5 5 5