1.

Which container can have the same keys?(a) map(b) multimap(c) unordered map(d) setI got this question in an international level competition.The above asked question is from More Containers topic in section Class Hierarchies, Library & Containers of C++

Answer»

The correct OPTION is (b) multimap

To explain I would SAY: C++ provide multimap CONTAINER that is USED to MAKE map that can contain same keys i.e. {a: 5} and {a:10} both can exist.



Discussion

No Comment Found

Related InterviewSolutions