Author Topic: Operators ^^ and ^=  (Read 1106 times)

0 Members and 1 Guest are viewing this topic.

José Roca

  • Guest
Operators ^^ and ^=
« on: October 03, 2018, 05:37:57 PM »
What these operators do? By exclusion, I thought that they were bitwise Xor operators, but print 200 ^^ 184 prints 0 instead of 112.

Charles Pegge

  • Guest
Re: Operators ^^ and ^=
« Reply #1 on: October 03, 2018, 06:37:50 PM »

^ is the power operator (you have to use xor for bitwise xor operations)
but ^^ is a boolean xor

also implemented:
|| boolean or
&& boolean and