Simon Tatham 2/14/2025

This article provides an in-depth explanation of the XOR (exclusive OR) operator, starting from its boolean logic definition and truth table. It covers bitwise XOR on integers, its mathematical properties, and diverse applications in cryptography, graphics, and low-level programming (like bit swapping and the Nim game). The article also connects XOR to higher mathematical concepts such as symmetric difference, finite fields (GF(2)), and error-correcting codes.

XOR

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week