1

I have this binary number:

00000111

how I can compute

11100000

meaning left shifting the 3 least significant bits? In this case all are 1's but it might be any n binary digits

curious
  • 1,524
  • 6
  • 21
  • 45
  • Use the left bit shift operator ... see https://stackoverflow.com/questions/141525/what-are-bitwise-shift-bit-shift-operators-and-how-do-they-work – John Sheridan Oct 29 '19 at 16:29

0 Answers0