The AND operator (&) compares two numbers bit by bit. For each position, the result has a 1 only if both input bits are 1. Otherwise, the result is 0.
Example: . In binary, and . Comparing position by position: , , , . Result: .
You'll use AND to check if specific bits are set, or to clear bits by masking. It's one of the most common bit operations.