Mental Model
We change one specific bit in a number to 1, 0, or flip it without affecting other bits.
Analogy: Imagine a row of light switches where each switch controls one light. Setting a bit is like turning a specific switch on, clearing is turning it off, and toggling is flipping its current state.
Number bits: 0 0 1 0 1 1 0 1 Positions: 7 6 5 4 3 2 1 0 Toggle bit 3 -> flip the switch at position 3