-
By using which of the following the elements in the associate container can be efficiently accessed?
-
- Array
- Key
- Position
- Both Key & Position
- 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.