Zum Inhalt springenSkip to content
Number Encodings

Bitwise Operators

Per-bit operations on bit patterns: NOT, AND, OR, XOR, left shift, right shift.

Configure your inputs and press Compute to see the step-by-step computation.

How it works

Bitwise C operators work per bit on patterns without interpreting them as numbers. ~x flips every bit; x & y, x | y, x ^ y combine bits via AND, OR, XOR; x << k shifts left by k (multiplies by 2k), x >> k shifts right (integer division by 2k). Essential in low-level programming.

When to use

Microcontroller registers, bit masks, fast multiplication/division by powers of two, embedded systems.