Which of the following shows the contents of vector v1 and v2 after running this code?cppstd::vector v1{1,2,3},v2;v2=v1;v1.push_back(4);v2.push_back(5);

🎲 Try a Random Question  |  Total Questions in Quiz: 70  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
C++ Quiz — practice the complete quiz, review flashcards, or try a random question.

MCQs For LinkedIn Skill Assessments.


Which of the following shows the contents of vector v1 and v2 after running this code?<br>cpp<br>std::vector<int> v1{1,2,3},v2;<br>v2=v1;<br>v1.push_back(4);<br>v2.push_back(5);<br>