有符号byte范围如何计算?
我已经知道它是-128~127,不知道是如何得出的,尤其是-128!
人气:132 ℃ 时间:2019-10-09 11:32:33
解答
首先,难不免干点白痴般地事情,穷举一下...正数,原码跟补码一样 +127,0111 1111 +126,0111 1110 +125,0111 1101 +124,0111 1100 +123,0111 1011 +122,0111 1010 ...+4,0000 0100 +3,0000 0011 +2,0000 0010 +1,0000 0...
推荐
- 用1个字节来表示有符号整数范围,范围为-128到127,为什么?重点说明一下-128是怎么来?
- 若用4个字节表示1个带符号的整数,其补码的表示范围是多少?
- 文件系统中设定的物理块大小为512字节,假设一个文件控制块有48个字节,符号目录项占8字节,其中文件名占
- 帮忙配个情侣的签名:When I am out ,take me as the wind.字数意思都相对的,
- 请帮翻译成中文 nine six nine zero eight eight nine six two
- I first poured some oil into the pot,waited for a moment and then put the vegetables into it.翻译
- 已知2x-1的平方根是+-6,2x+y-1的算术平方根是5,求2x-3y-6的立方根
- 伯牙绝弦的原因是什么?把文中的原句写下来
猜你喜欢