1.

What are Bi-directional iterators?(a) Iterator same as Forward Iterator(b) Forward Iterator that can be used in both directions(c) Iterator that can only be used to access the sequence from both sides(d) Iterator that can only be used to assign the sequence from both sidesThe question was asked in unit test.The query is from Iterators topic in division Algorithms, Objects & Iterators in C++ of C++

Answer»

Right option is (B) Forward Iterator that can be used in both directions

The BEST I can EXPLAIN: Bi-directional iterator is a type of forward ITERATORS that can be used for both directions access and assign.



Discussion

No Comment Found

Related InterviewSolutions