Home » C++ Programming » Questions and Answers » Question
  1. By using which of the following the elements in the associate container can be efficiently accessed?
    1. Array
    2. Key
    3. Position
    4. Both Key & Position
    5. None of these
Correct Option: B

Associative containers are designed to be especially efficient in accessing its elements by their key, as opposed to sequence containers which are more efficient in accessing elements by their position.



Your comments will be displayed only after manual approval.