单选题
n位定点整数(有符号)表示的最大值是______。
A、
2
n
B、
2
n
-1
C、
2
n-1
D、
2
n-1
-1
【正确答案】
D
【答案解析】
[解析] n位二进制有符号定点整数,数值位只有n-1位最高位为符号位,所以最大值为2
n-1
-1。
提交答案
关闭