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

what do you mean by volatile variable?

672


How long does it take to get good at leetcode?

762


Write a program in c++ to print the numbers from n to n2 except 5 and its multiples

2144


Difference between struct and class in terms of access modifier.

800


Eplain extern keyword?

664






Which c++ operator cannot overload?

643


Can you use the function fprintf() to display the output on the screen?

787


What are the rules about using an underscore in a c++ identifier?

720


What do you know about near, far and huge pointer?

690


Explain the difference between c & c++?

681


Describe the advantage of an external iterator.

703


Does c++ have foreach?

626


Is python written in c or c++?

736


Why do we need constructors in c++?

741


When are exception objects created?

687