1.

What is the output of this program?
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int main ()
{
int Array[]={ 110, 220, 230, 440, 550 };
vector<int> VectorData (5, 85);
iter_swap(Array, VectorData.begin());
iter_swap(Array + 4,VectorData.begin() + 3);
for (vector<int> :: iterator Iter = VectorData.begin();
Iter != VectorData.end(); ++Iter)
cout << ' ' << *Iter;
return 0;
}

A. 110 220 230
B. 110 85 85 550 85
C. 110 85 85
D. 85 550 85
E. Compilation Error
Answer» C. 110 85 85


Discussion

No Comment Found

Related MCQs