Page 1 of 1

What is the syntax of swap()?

Posted: Wed Jul 13, 2022 7:53 pm
by answerhappygod
a) swap(arr1, arr2);
b) arr1.swap(arr2);
c) swap<int, int>(arr1, arr2);
d) swap[arr1, arr2];