Exercise: Bitwise NOT
Put into practice what we’ve learned about bitwise negation.
We'll cover the following...
We'll cover the following...
Exercise
Apply bitwise NOT for the following unsigned two-byte integers:
- 56
- 1018
- 58362
Repeat the calculations for the case when these are the signed integers.
Solution
First, let us calculate bitwise NOT for unsigned two-byte integers.
 56 = 0000 0000