Given below are three implementations of the swap() function in C++:
Which of these would actually swap the contents of the two integer variables p and q?
I also answered 'C' but official key show 'B' is the correct... Can you explain ?