📜  左移与 2 倍数 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:03.542000             🧑  作者: Mango

代码示例1
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