Java开发网 |
注册 |
登录 |
帮助 |
搜索 |
排行榜 |
发帖统计
|
您没有登录 |
» Java开发网 » 技术文章库
打印话题 寄给朋友 订阅主题 |
作者 | [个人原创]Q. Why ~3 gives -4? |
ranchgirl
版主 发贴: 801 积分: 132 |
于 2005-08-11 22:30
Q. Why ~3 gives -4? A: Don't forget in Java, except char, every number is signed. And the sign bit is inverted too. That is why you get -4 for answer. See here! Spaces added for readbility.
which is -4 What you really need to learn something called Two's compliment Read it, it is an excellent article, I learned a lot from it!
gongshi edited on 2005-08-11 22:51
|
话题树型展开 |
人气 | 标题 | 作者 | 字数 | 发贴时间 |
12419 | [个人原创]Q. Why ~3 gives -4? | ranchgirl | 525 | 2005-08-11 22:30 |
10450 | Re:[个人原创]Q. Why ~3 gives -4? | ranchgirl | 10163 | 2005-08-11 22:32 |
10327 | Re:[个人原创]Q. Why ~3 gives -4? | jameszhang | 87 | 2005-08-11 22:51 |
10539 | Re:[个人原创]Q. Why ~3 gives -4? | ranchgirl | 238 | 2005-08-11 22:55 |
10261 | Re:[个人原创]Q. Why ~3 gives -4? | floater | 51 | 2005-08-12 09:24 |
10581 | Re:[个人原创]Q. Why ~3 gives -4? | ranchgirl | 433 | 2005-08-12 21:13 |
10582 | Re:[个人原创]Q. Why ~3 gives -4? | ranchgirl | 516 | 2005-08-12 21:21 |
11713 | Re:[个人原创]Q. Why ~3 gives -4? | ranchgirl | 183 | 2005-08-13 17:35 |
已读帖子 新的帖子 被删除的帖子 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |