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);
Which of the following is correct way of copying the values of pair p1 into other pair p2?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Which of the following is correct way of copying the values of pair p1 into other pair p2?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!