#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;        for &#40;int i = 1; i &lt; 6; ++i&#41;             myvector.push_back&#40;i&#41;;        reverse&#40;myvector.begin&#40;&#41;, myvector.end&#40;&#41;&#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. 1 2 3 4 5
B. 5 4 3 2 1
C. 0 1 2 3 4
D. None of the mentioned
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;        for &#40;int i = 1; i &lt; 6; ++i&#41;             myvector.push_back&#40;i&#41;;        reverse&#40;myvector.begin&#40;&#41;, myvector.end&#40;&#41;&#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. 1 2 3 4 5 B. 5 4 3 2 1 C. 0 1 2 3 4 D. None of the mentioned
Explanation:In this program, We reversed the vector values by using the reverse function.