← Back

Complete Bitwise Operators

AND OR XOR NOT shifts, masking, setting, clearing bits.

bitwisemathUpdated 2025-09-01

Operators

  • & | ^ ~ << >> >>>

Tricks

  • x & (x-1) clears lowest set bit
  • x & -x isolates lowest set bit