What are the | and ^ operators used for? [duplicate]

  • | = (bitwise/non-short-circuiting) “or”
  • ^ = “xor”

and for info, “not” (bitwise negation) is ~

Leave a Comment