Search for: what is pair in c++?
Answer / Suman Shrestha
A pair in C++ is a data structure that holds two elements of any data types. It is provided by the standard template library (STL) in the pair header file. A common use case is std::pair<int, int> to store pairs of integers.
| Is This Answer Correct ? | 0 Yes | 0 No |
How do you flush std cout?
What is the difference between equal to (==) and assignment operator (=)?
How did c++ start?
Can a class be static in c++?
What is iterator c++?
Can a constructor be private?
Is main a class in c++?
What is the difference between reference and pointer?
What is function declaration in c++ with example?
How would you find out if a linked-list is a cycle or not?
What is the difference between a type-specific template friend class and a general template friend class?
What are c++ tokens?