#include &lt;iostream&gt;    #include &lt;algorithm&gt;    #include &lt;vector&gt;    using namespace std;    bool IsOdd &#40;int i&#41;     &#123;        return &#40;i % 2&#41; == 1;     &#125;    int main &#40;&#41;     &#123;        vector&lt;int&gt; myvector;        for &#40;int i = 1; i &lt; 10; ++i&#41; myvector.push_back&#40;i&#41;;        vector&lt;int&gt; :: iterator bound;        bound = partition &#40;myvector.begin&#40;&#41;, myvector.end&#40;&#41;, IsOdd&#41;;        for &#40;vector&lt;int&gt; :: iterator it = myvector.begin&#40;&#41;; it != bound; ++it&#41;            cout &lt;&lt; ' ' &lt;&lt; *it;        return 0;    &#125;
A. 1 3 5
B. 1 3 9
C. 1 9 3 7
D. 1 9 3 7 5
Answer:D
#include &lt;iostream&gt;    #include &lt;algorithm&gt;    #include &lt;vector&gt;    using namespace std;    bool IsOdd &#40;int i&#41;     &#123;        return &#40;i % 2&#41; == 1;     &#125;    int main &#40;&#41;     &#123;        vector&lt;int&gt; myvector;        for &#40;int i = 1; i &lt; 10; ++i&#41; myvector.push_back&#40;i&#41;;        vector&lt;int&gt; :: iterator bound;        bound = partition &#40;myvector.begin&#40;&#41;, myvector.end&#40;&#41;, IsOdd&#41;;        for &#40;vector&lt;int&gt; :: iterator it = myvector.begin&#40;&#41;; it != bound; ++it&#41;            cout &lt;&lt; ' ' &lt;&lt; *it;        return 0;    &#125;
A. 1 3 5 B. 1 3 9 C. 1 9 3 7 D. 1 9 3 7 5
Explanation:In this program, We are finding the odd values in the sequence.