When two logical arguments are given, the ^ operator performs exceptional or, for example,
true ^ true == false
true ^ false == true
false ^ true == true
false ^ false == false
When specifying two numerical arguments, he does something, but I have no idea what. At first I thought it was modular division, because
(5 ^ 5) == 0
However
(10 ^ 4) == 14
So this is not modular division, is it some kind of bit shift?
source
share