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);
d) Pair <int,int> p2.copy(p1);
Meghna MittalBegginer
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
c
Explanation: Both pair p2 = p1; and pair p2(p1); can be used to copy the data of one pair into other pair.