Swapping of two numbers using XOR and other methods.

Опубликовано: 30 Сентябрь 2020
на канале: Riyaz Jamadar
90
11

#swapping #using #XOR
This video demonstrates swapping of two numbers without using third variable. It uses XOR operator to swap two nos. It demonstrates how to swap two no.s using addition and subtraction, It demonstrates use of stack data structure to swap two nos. as well.