What will be printed as a result of the following code execution?
#include <iostream>
#include <vector>
#include <algorithm>
#include <iterator>
using namespace std;

int main() {
   int Arr[] = {1,2,3,1,2,3};
   vector<int> Vec(Arr, Arr+(sizeof(Arr)/sizeof(Arr[0])));
   sort(Vec.begin(), Vec.end());
   unique_copy(Vec.begin(), Vec.end(), ostream_iterator<int>(cout, " "));
   return 0;
}

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes