Q797
What is the syntax of swap()?
A.
swap(arr1, arr2);
B.
arr1.swap(arr2);
AnswerC.
swap<int, int>(arr1, arr2);
D.
swap[arr1, arr2];
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board