What is Binary OR operation ? Bit Manipulation

Опубликовано: 25 Ноябрь 2021
на канале: Firmware
424
6

Here we learn about the OR operator in C/C++ language used for Bit Manipulations.
Any bit OR with 1, results in 1. Any bit OR with 0, results in the same the bit value.
OR operation helps us create masks which could SET ( make 1 ) certain bits in a number.
This is very useful when each bit in a number signifies an ON/OFF or ENABLED/DISABLED status of some feature.

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