#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; 5; ++i&#41;            myvector.push_back&#40;i&#41;;        rotate&#40;myvector.begin&#40;&#41;, myvector.begin&#40;&#41; + 3, 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
B. 4 3 2 1
C. 3 4 2 1
D. 4 1 2 3
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; 5; ++i&#41;            myvector.push_back&#40;i&#41;;        rotate&#40;myvector.begin&#40;&#41;, myvector.begin&#40;&#41; + 3, 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 B. 4 3 2 1 C. 3 4 2 1 D. 4 1 2 3
Explanation:In this program, We are rotating the vector values by 3, So it is printing this option.