计算机如何实现无符号数的减法?
计算机内如何实现无符号数的减法,采用特定电路吗?
人气:458 ℃ 时间:2020-04-16 17:43:17
解答
存储的时候不区分有符号数 无符号数
取值的时候 如果你取int值 就当int来解释
取unsigned int 就当unsigned int来解释
比如unsigned int u = -1;
u的值就是4294967295
int *s;
s = (int *)u;
*s的值就是-1
推荐
猜你喜欢
- 有don't do sth instead of doing的用法吗,怎么翻译?
- A successful team beats with one heart是什么意思
- he often___(relax) half a day
- 用作图法求直线斜率时,必须采用什么方法?
- Edward Smith is _____old.He works in a bank.
- 连词成句 threw,Li,Ming,the,ball,another,boy,to
- Lily doesn't want to buy__same present__Lucy did填空
- 麻烦您了,您帮我看看这道题呗 we see things by our eyes对么?为什么