IT lexicon Programming Bitwise operators

Bitwise operators

Programming På svenska → Updated: 2026-05-24

Operators that work bit by bit on integers: AND &, OR |, XOR ^, NOT ~, shift << >>.

Classic uses: flags in a byte, bitmasks for permissions (Linux chmod 755), fast multiplication/division by 2 (shift). Compact hash functions. Rare in high-level code, common in embedded and drivers.

← Back to the lexicon