逻辑移位和算数移位的区别

逻辑移位:不带符号的移位 适合无符号数

算数移位 :带符号的移位 适合带符号数 其中负数右移 符号位补1

Guess you like

Origin blog.csdn.net/Dale_zero/article/details/120192691