Q677
Which of the following is correct way of copying the values of pair p1 into other pair p2?
A.
pair <type,type> p2 = p1;
B.
pair <type,type> p2(p1);
C.
Both pair <type,type> p2 = p1; and pair <type,type> p2(p1);
AnswerD.
Pair <int,int> p2.copy(p1);
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board