What is "map" in STL?
Answers were Sorted based on User's Feedback
Answer / saroj das ,balsore
map class support an associative container in which
unique keys are mapped .with values. in essence ,a key is
simply name that you give to a value .once value you can
retrive it by using has been stored.
the most general sense, a map is a list of key /
value pairs .
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / 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 |
What are single and multiple inheritances in c++?
Which of the following operator cannot be overloaded?
What is a set in c++?
Is it possible to provide default values while overloading a binary operator?
What is lvalue?
whats the size of class EXP on 32 bit processor? class EXP { char c1; char c2; int i1; int i2; char *ptr; static int mem; };
class HasStatic { static int I; }; Referring to the sample code above, what is the appropriate method of defining the member variable "I", and assigning it the value 10, outside of the class declaration? a) HasStatic I = 10; b) int static I = 10; c) static I(10); d) static I = 10; e) int HasStatic::I = 10;
What is setf in c++?
By using c++ with an example describe linked list?
In the derived class, which data member of the base class are visible?
What is class invariant?
Do you know what are the new features that iso/ansi c++ has added to original c++ specifications?