1.

How the sequence of objects can be accessed?(a) Iterators(b) Pointers(c) Both Iterators & Pointers(d) LibraryThe question was posed to me in an interview for job.Enquiry is from Modifying Sequence Algorithms topic in division Algorithms, Objects & Iterators in C++ of C++

Answer» RIGHT choice is (c) Both Iterators & Pointers

Easy explanation - A range is any sequence of OBJECTS that can be accessed through iterators or pointers, such as an ARRAY or an instance of some of the STL containers.


Discussion

No Comment Found

Related InterviewSolutions