《计算机科学导论》课后练习(翻译)(19)
时间:2026-01-22
时间:2026-01-22
53.如果数字都用8位二进制补码表示,下列哪些个运算会溢出?
A. 11000010+00111111 B. 00000010+00111111
C. 11000010+11111111 D.000000010+11111111
解:Addition of two integers does not create overflow if the result is in the range ( 128 to +127).
A. Addition does not create overflow because ( 62) + (+63) = 1 (in the range).
B. Addition does not create overflow because (+2) + (+63) = 65 (in the range).
C. Addition does not create overflow because ( 62) + ( 1) = 63 (in the range).
D. Addition does not create overflow because (+2) + ( 1) = 1 (in the range).
54如果数字和结果都用8位二进制补码表示,不通过实际的计算,能说出下列哪个运算会溢出吗?
A. 32+105 B. 32 105 C. 32+105 D. 32 105
上一篇:氟康唑与其他药物的相互作用