What does this piece of code do?
…
int main(void)
{
…
vector<int> arr(10);
…
copy(arr.begin(), arr.end(), ostream_iterator<int>(cout, " "));
}

Follow CodeGalaxy

Mobile Beta

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