Search for: what is pair in c++?



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

Post New Answer

More C++ General Interview Questions

How do you flush std cout?

1 Answers  


What is the difference between equal to (==) and assignment operator (=)?

1 Answers  


How did c++ start?

1 Answers  


Can a class be static in c++?

1 Answers  


What is iterator c++?

1 Answers  


Can a constructor be private?

1 Answers  


Is main a class in c++?

1 Answers  


What is the difference between reference and pointer?

1 Answers  


What is function declaration in c++ with example?

1 Answers  


How would you find out if a linked-list is a cycle or not?

1 Answers  


What is the difference between a type-specific template friend class and a general template friend class?

1 Answers  


What are c++ tokens?

1 Answers  


Categories