Exercise: Bit shifts
Practice the bit shifts on your own.
Exercise
Perform arithmetic bit shifts for the following signed two-byte integers:
- 25649 >> 3
- 25649 << 2
- -9154 >> 4
- -9154 << 3
Solution
Here are the results of ...
Practice the bit shifts on your own.
Perform arithmetic bit shifts for the following signed two-byte integers:
Here are the results of ...