P

Praveen Singh • 36.81K Points
Coach

Q. Which STL container stores key-value pairs and provides fast retrieval based on keys?

  • (A) vector
  • (B) map
  • (C) stack
  • (D) queue
  • Correct Answer - Option(B)
  • Views: 33
  • Filed under category C++

Explanation by: Praveen Singh
The 'map' container in the STL stores key-value pairs and allows fast key-based lookups.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics