Pergunta de entrevista da empresa Intel Corporation

Swap values between two registers without using a third register.

Resposta da entrevista

Sigiloso

9 de mar. de 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