1.

Which of the following is the correct syntax of using pair p?(a) pair p;(b) pair p ;(c) pair [type,type] p;(d) pair p [type,type];The question was asked in an online interview.I would like to ask this question from STL topic in chapter Class Hierarchies, Library & Containers of C++

Answer» CORRECT option is (a) pair p;

Best EXPLANATION: A pair is declared using the this SYNTAX pair IDENTIFIER.


Discussion

No Comment Found

Related InterviewSolutions