Some questions on bit operations

What is the value of the folowing expressions?

  1. 1 ^ 4

  2. 4 & 8

  3. 1 & 3

  4. 1 | 3

  5. 1 ^ 3

Answers to these questions.


Back to notes on bit operators.