Explain how the bitwise NOT operator (~) works and provide an example.
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: easy
Interview Round: Other
Overview: Explain how the bitwise NOT operator flips the bits of an integer and work through an example in a fixed width. Tests two's complement, why the result of NOT on a positive number is negative, and how signed, unsigned and Python integers differ.