What is the meaning of "b^=2" in c lanuage | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Resposta
+ 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