DIPANSHU_ASRI
Right off the assembly line
please answer if u can.
a= a^b;
b = b^a;
a = a^b;
v1, v2 = v2, v1
Use pointers
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.i think it would still require another variable unless the address of two variables are consecutive.