Tag Archives: bitwise XOR

Bitwise Operators – Free Guide

I have an exciting new eGuide available. Most of this info is available in various places on my site, but I’ve collated it all together in one document, and updated it, so it’s easier for you to use. What does it cover? It’s a no-jargon guide to the four bitwise operators in C (AND, OR, […]

Bitwise XOR

Today we’ll look at the third out of four bitwise operators – bitwise XOR. Bitwise XOR is represented by the symbol ^ and is an exclusive OR operation. Can I see an example? 130 ^ 10 = 136 What is this actually doing? Bitwise XOR compares each bit setting and if either one is set, […]