1.

What is the output of this program?
#include <iostream> 
#include <algorithm>
using namespace std;
int main ()
{
int Array[] = {101, 201, 301, 301, 201, 101, 101, 201};
int* pbegin = Array;
int* pend = Array + sizeof(Array) / sizeof(int);
pend = remove (pbegin, pend, 201);
for (int* ptr = pbegin; ptr != pend; ++ptr)
cout << ' ' << *ptr;
return 0;
}

A. 101
B. 101 301
C. 101 301 301
D. 101 301 301 101
E. 101 301 301 101 101
Answer» F.


Discussion

No Comment Found

Related MCQs