1.

Which of the following operations can be performed on a pair?(a) Assignment of pairs(b) Copying of one pair to another(c) Comparison of two pairs(d) All of the mentionedThe question was asked at a job interview.This is a very interesting question from STL topic in portion Class Hierarchies, Library & Containers of C++

Answer»

Correct CHOICE is (d) All of the mentioned

Best EXPLANATION: A pair can be assigned, copied or can be COMPARED. Hence all the above operations can e performed on PAIRS.



Discussion

No Comment Found

Related InterviewSolutions