How to find XOR of two numbers without using XOR Operator - Bit Manipulation Interview

Опубликовано: 29 Ноябрь 2021
на канале: Firmware
852
8

In this video, we are going to develop an algorithm that finds the XOR of two numbers without using the XOR operator and implement it in C/C++. For this, we will use the concepts of Bit Manipulation. This is a common interview question for embedded / software / firmware roles.
This algorithm turns out to be really elegant, and we see symmetry in the relationship between XOR and other bit operations such as AND, OR, 1's Complement Inversion, etc.

Episode on Basics of Bit Manipulations:    • Bit Manipulation - Three most used fu...  
Episode on the must-know concepts of XOR:    • Must know concepts of XOR -  Bit Mani...  

See Bit Manipulation Interview Preparation Series here:
   • Bit Manipulation Interview Series  

You could follow us on Facebook and Instagram:
Facebook:   / firmwarecode  
Instagram:   / firmwarecode  

#bitmanipulation #bitalgorithm