By using which of the following the elements in the associate container can be efficiently accessed?

Daniel William

New member
By using which of the following the elements in the associate container can be efficiently accessed?
A. Key
B. Position
C. Both Key & Position
D. Value
 
Answer: a
Explanation: 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.
 

Tìm kiếm

Back
Top