1.

What is the use of middle parameter in the rotate method?(a) Marks the begining of a sequence(b) Marks the ending of a sequence(c) Marks the elements in a sequence(d) Marks the digits in a sequenceI have been asked this question during an online interview.The question is from Modifying Sequence Algorithms in chapter Algorithms, Objects & Iterators in C++ of C++

Answer»

Right answer is (c) Marks the elements in a sequence

To explain: Forward ITERATOR POINTING to the element within the range and that can be MOVED to the FIRST position in the range.



Discussion

No Comment Found

Related InterviewSolutions