Swap two numbers using XOR Operator without using extra variable

Swap two numbers using XOR Operator without using extra variable

Ashok Dhulipalla

4 года назад

239 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Ajay Bhandari
Ajay Bhandari - 04.05.2020 10:32

if u do it when
x=5 and y=6
we use only 3 bit to represent 5 and 6 but when xor is done what about fourth bit that will show 1011
plz explain if u know it

Ответить