+ 1

What does the "^=" operator do?

12th Apr 2018, 10:22 PM
Evan Magill
Evan Magill - avatar
2 Answers
+ 8
Assignment operator (x ^ = y) is equivalent to (x = x ^ y) ^ Simply means Exclusive OR
12th Apr 2018, 10:43 PM
D_Stark
D_Stark - avatar
+ 7
I made this in java, might help you understand it better 👍 https://code.sololearn.com/c70XD2RyAA36/?ref=app
12th Apr 2018, 11:38 PM
D_Stark
D_Stark - avatar