What is a map in c++?



What is a map in c++?..

Answer / Ajay Kumar Maurya

"A map in C++ is an associative container that stores pairs of keys and values, allowing for fast lookup of data based on the associated key. It provides efficient insertion, deletion, searching, and iteration operations compared to other containers such as arrays or vectors."n

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What is iterator c++?

1 Answers  


How to create a reference variable in C++

1 Answers  


How do you allocate and deallocate memory in C++?

1 Answers  


what is the behaviour of C and C++ compiler for the below statements. int *p; p = malloc(100); Is the behaviour same ? or different ?

2 Answers  


Is c++ harder than java?

1 Answers  


What are the characteristics of friend functions?

1 Answers  


How can you tell what shell you are running on unix system?

1 Answers  


Why is that unsafe to deal locate the memory using free( ) if it has been allocated using new?

1 Answers  


What is the purpose of decltype?

1 Answers  


What you mean by early binding and late binding? How it is related to dynamic binding?

1 Answers  


What is abstract class in c++?

1 Answers  


Explain the need for "Virtual Destructor"?

2 Answers   Infosys,


Categories