Intel Corporation interview question

code to exchange two integer

Interview Answer

Anonymous

7 Apr 2015

int nSource = 10; int nTarget = 50; nSource ^= nTarget; nTarget ^= nSource; nSource ^= nTarget;