0
What does the ^ operator do?
I don't understand what this operator does i tried to see for myself by looking what the output would be if i used it but everytime i come up with something the next output shows it not what the operator is used for.
4 Antworten
+ 4
0^0 = 0
1^0 = 1
0^1 = 1
1^1 = 0
+ 2
Then it's an exclusive-or (bitwise)
+ 1
In what language? It basically stands for exponentiation
0
In python