What is the meaning of "b^=2" in c lanuage | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the meaning of "b^=2" in c lanuage

A section I encountered in someone's code

6th May 2022, 6:39 PM
Samuel Njau
1 Answer
+ 3
If I'm not mistaken, the ^ operator is a bitwise operator called XOR (exclusive or). 01101 ^ 11011 = 10110
6th May 2022, 6:46 PM
Yahel
Yahel - avatar