A

Admin • 833K 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: 29
  • Filed under category C++
  • Hashtags:

Explanation by: Admin

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.

Be the first to start discuss.