D
please answer if u can.
a= a^b;
b = b^a;
a = a^b;
v1, v2 = v2, v1
Yes it would require another variable because as soon as you will apply swap on pointer variable the previous value will be gone and you can not do both swaps in single operation.