Answers for "left shift vs multiple by 2"

0

left shift vs multiple by 2

Shifting left by n bits on a signed or unsigned binary number has the effect of multiplying it by 2n. Shifting right by n bits on a two's complement signed binary number has the effect of dividing it by 2n, but it always rounds down
Posted by: Guest on January-14-2021

Browse Popular Code Answers by Language