Swap Two Integer Variables

Use this algorithm to swap two integer variables:

 a = a Xor b b = a Xor b a = a Xor b 
Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

Recent Articles: