[Tutor] What is the augmented assignment operator "^="
Rikard Bosnjakovic
rikard.bosnjakovic at gmail.com
Mon Feb 19 11:13:57 CET 2007
On 2/19/07, Dick Moores <rdm at rcblue.com> wrote:
> I've tried "^=" out a bit:
[...]
> and get that strange alternating behavior. Can someone explain?
> And while at it, please also explain "&=" and "|=".
^ is XOR, & is AND, | is OR, all bitwise.
You can read more about them here: http://www.somacon.com/p125.php
under "C bitwise operators".
--
- Rikard.
More information about the Tutor
mailing list