13 C | Swap two numbers using XOR

Опубликовано: 15 Октябрь 2024
на канале: 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 :-)