1.

What do all STL containers define?(a) Iterator types(b) Begin methods(c) End methods(d) All of the mentionedI have been asked this question in final exam.My question is based upon Defining a New Container in portion Class Hierarchies, Library & Containers of C++

Answer» CORRECT answer is (d) All of the mentioned

Easy explanation - All the STL CONTAINERS define the iterator types for that container, e.g., iterator and const_iterator, e.g., vector::iterator and the BEGIN/end METHODS for that container, e.g., begin() and end().


Discussion

No Comment Found

Related InterviewSolutions