#include &lt;iostream&gt;     #include &lt;algorithm&gt;    using namespace std;    int main &#40;&#41;     &#123;        int myints&#91;&#93; = &#123;10, 20, 30, 30, 20, 10, 10, 20&#125;;          int* pbegin = myints;                              int* pend = myints + sizeof&#40;myints&#41; / sizeof&#40;int&#41;;        pend = remove &#40;pbegin, pend, 20&#41;;              for &#40;int* p = pbegin; p != pend; ++p&#41;            cout &lt;&lt; ' ' &lt;&lt; *p;        return 0;    &#125;
A. 10, 20, 30, 30, 20, 10, 10, 20
B. 10, 30, 30, 10, 10
C. 10, 20, 20, 10, 10, 10, 20
D. None of the mentioned
Answer:A
#include &lt;iostream&gt;     #include &lt;algorithm&gt;    using namespace std;    int main &#40;&#41;     &#123;        int myints&#91;&#93; = &#123;10, 20, 30, 30, 20, 10, 10, 20&#125;;          int* pbegin = myints;                              int* pend = myints + sizeof&#40;myints&#41; / sizeof&#40;int&#41;;        pend = remove &#40;pbegin, pend, 20&#41;;              for &#40;int* p = pbegin; p != pend; ++p&#41;            cout &lt;&lt; ' ' &lt;&lt; *p;        return 0;    &#125;
A. 10, 20, 30, 30, 20, 10, 10, 20 B. 10, 30, 30, 10, 10 C. 10, 20, 20, 10, 10, 10, 20 D. None of the mentioned
Explanation:In this program, We are removing all the 20’s and then we are