1.

How can the member functions in the container be accessed?(a) Iterator(b) Indirect(c) Both Iterator & Indirect(d) VectorThe question was posed to me during an internship interview.This interesting question is from Container Design in division Class Hierarchies, Library & Containers of C++

Answer»

The correct OPTION is (a) Iterator

The BEST explanation: The CONTAINER manages the STORAGE SPACE for its elements and provides member functions to access them, either directly or through iterators which reference objects with similar properties to pointers.



Discussion

No Comment Found

Related InterviewSolutions