Solved

If V1 Is a Vector<int> Containing Some Number of Int

Question 17

Multiple Choice

If v1 is a vector<int> containing some number of int elements sorted in ascending order, after these statements execute: std::vector<int> results1;
Std::vector<int> results2;
Std::unique_copy(v1.begin() , v1.end() , std::back_inserter(results1) ) ;
Std::reverse_copy(v1.begin() , v1.end() , std::back_inserter(results2) ) ;
Which of the following could be true?


A) results1 contains more elements than results2.
B) The first element in results1 matches the last element in results2.
C) results1 is empty but results2 is not.
D) None of the above.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents