What are the types of STL containers?
Answers were Sorted based on User's Feedback
Answer / pavan kumar
Sequence Containers
- deque
- list
- vector
Associative Containers
- map (multimap)
- set (multiset)
Container Adapters
- priority_queue
- queue
- stack
| Is This Answer Correct ? | 24 Yes | 1 No |
Answer / saroj das ,
containers are objects that hold other object . there are
different type vector, dequeue,list, map etc...
| Is This Answer Correct ? | 11 Yes | 4 No |
Answer / pradeep
Sequence Containers
- deque
- list
- vector
Associative Containers
- map (multimap)
- set (multiset)
Container Adapters
- priority_queue
- queue
- stack
| Is This Answer Correct ? | 1 Yes | 0 No |
In how many ways we can initialize an int variable in C++?
What is the difference in size of this two clasees? Class A { int a; char c; float f; } Class B { float f; char c; int a; }
I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.
What are virtual functions in c++?
Who discovered c++?
Show the declaration for a pointer to function returning long and taking an integer parameter.
Can a program run without main function?
What are the differences between malloc() and calloc()?
What is the role of copy constructor in copying of thrown objects?
Assume studentNames and studentIDs are two parallel arrays of size N that hold student data. Write a pseudocode algorithm that sorts studentIDs array in ascending ID number order such that the two arrays remain parallel.
What is c++ good for?
How does java differ from c and c++?