Explain Exclusive-or operator

Exclusive-or operator: An exclusive-or operator (^) is both a Boolean operator and the bit manipulation operator. The Boolean version provides the value true when only one of its operands is true; or else it offers the value false. Likewise, the bit manipulation version generates a 1 bit wherever the corresponding bits in its operands are dissimilar.

   Related Questions in Programming Languages

©TutorsGlobe All rights reserved 2022-2023.