Intel Corporation Interview Question

Swap values between two registers without using a third register.

Interview Answer

Anonymous

Mar 9, 2014

Lets say the two values are in variable x and y. perform the following operations: x = x xor y y = y xor x x = x xor y

7