~ is a unary operator that flips all the bits of a binary integer

  • 0s become 1s
  • 1s become 0s