我正在阅读Modern C(2018年2月13日版),在第42页上说

c - 最低有效位(LSB)是否始终是“第一”位?-LMLPHP

它说索引为4的位是最低有效位。索引为0的位不是最低有效位吗? (有关MSB的相同问题。)

哪个是对的?正确的术语是什么?

最佳答案

他们对“最高有效位”和“最低有效位”的定义具有误导性:

8 bit Binary number : 1 1 1 1 0 0 0 0
      Bit number      7 6 5 4 3 2 1 0
                      |     |       |
                      |     |       least significant bit
                      |     |
                      |     |
                      |     least significant bit that is 1
                      |
                      most significant bit that is 1 and also just most significant bit

07-28 02:54
查看更多