13 C | Swap two numbers using XOR

Published: 25 June 2014
on channel: Yusuf Shakeel
33,254
352

In this video we will learn to swap the value of two variables using XOR operator and without using a third variable.

XOR is also known as eXclusive OR.
In programming XOR operator is denoted by caret ^
XOR works with bit i.e., 0 and 1.

Also watch:
Swap two numbers without using third variable.
   • 01 C | Swap two numbers without using...  

Complete Playlist:
   • Programming  

You can download the project code from my GitHub repository
https://github.com/yusufshakeel/C-Pro...

Thanks for watching :-)


Watch video 13 C | Swap two numbers using XOR online, duration hours minute second in high quality that is uploaded to the channel Yusuf Shakeel 25 June 2014. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 33,254 times and liked it 352 visitors.