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.

2nd Sep 2017, 8:27 PM
Joel Burleson
Joel Burleson - avatar
4 Answers
+ 4
0^0 = 0 1^0 = 1 0^1 = 1 1^1 = 0
2nd Sep 2017, 8:46 PM
Dapper Mink
Dapper Mink - avatar
+ 2
Then it's an exclusive-or (bitwise)
2nd Sep 2017, 8:44 PM
Dapper Mink
Dapper Mink - avatar
+ 1
In what language? It basically stands for exponentiation
2nd Sep 2017, 8:28 PM
Dapper Mink
Dapper Mink - avatar
0
2nd Sep 2017, 8:30 PM
Joel Burleson
Joel Burleson - avatar