Domanda di colloquio di Qualcomm

c programming problem. Swap variable x and y without using a temporal variable

Risposte di colloquio

Anonimo

7 feb 2012

x = x ^ y y = x ^ y x = x ^ y

Anonimo

28 apr 2016

x=x-y y=x+y x=y-x