[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.
Interview Questions and Answers :: Cavium Networks

2. Swap the Bit's from x location to y location.

Answer:

USE XOR OPERATION FOR THIS



X=X^Y



Y=Y^X



X=X^Y



By using these three conditions we can exchange of X and Y bits.

Post Your Answer Here:      Public      Private

Rate This: +0 -0
Report     

Post Your Reply Here:     

Report Error

Report Error

Please Login First Click Here