1.

Which function is used increment the iterator by a particular value?(a) next()(b) advance()(c) prev()(d) move()I have been asked this question in an international level competition.This key question is from Iterators topic in section Algorithms, Objects & Iterators in C++ of C++

Answer»

Correct OPTION is (b) advance()

The best I can explain: advance() FUNCTION is USED to increment an iterator by a given value.



Discussion

No Comment Found

Related InterviewSolutions