What is "map" in STL?

Answer Posted / shakti singh khinchi

map is a associative container which is known for a key
value pair. Whereas key always unique and associated with a
non unique value.
maps are sorted on the basis of keys. They are simplified
form of hashing.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to find the Fibonacci series recursively.

597


What is an adaptor class or wrapper class in c++?

600


Write a c program for binary addition of two 8 bit numbers.

3655


How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?

1826


What is pointer to array in c++?

608






Is the declaration of a class its interface or its implementation?

694


Explain the difference between using macro and inline functions?

572


What is the difference between structures and unions?

576


What is meant by entry controlled loop? What all C++ loops are exit controlled?

558


What is exception handling? Does c++ support exception handling?

582


How the programmer of a class should decide whether to declare member function or a friend function?

675


What are destructors?

566


How do you generate a random number in c++?

597


What is null and void pointer?

584


What is virtual destructor ans explain its use?

595