2 ms·
n00b question: What is the ^= operator, and what language is it from?
by 1MachineElf 6y ago
n00b question: What is the ^= operator, and what language is it from?
- detaro 6y agox ^= y is the same as x = x ^ y, with ^ being XOR. Bunch of languages have it, e.g. C, C++, Java, ...
- valvar 6y agoIt's bitwise XOR in C (and most other languages, I guess). https://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B#Bitwise_operators https://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B#Bit...