Here we learn about the XOR operator in C/C++ language used for Bit Manipulations and advanced Bit Algorithms.
XOR of any bit 1, will have the inverted bit in the resultant. This property XOR helps us toggle certain bits in a number. Also, XOR of any bit with 0, will have the same bit value in the output and this is a very helpful property when we use XOR for bit masking.
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 #XOR