New course! Every coder should learn Generative AI!
Try a free lesson+ 4
There isn't a ^^ operator. A single ^ is the bitwise xor operator. Xor checks out the bits of two numbers. If the same bit in both numbers have the same value, the resultant bit is zero. If they are different, the resultant bit is one. 5 ^ 7 is 2.
101
^111
--------
010