https://zhidao.baidu.com/question/520040958198524605.html?qbl=relate_question_5&word=short%20int%D6%C1%C9%D9%D3%A6%CE%AA16%CE%BB
[quote=引用 4 楼 liups 的回复:] 注解的意思是short int是16位的,所以才有那样的结果。
-32767的补码就是0x8001,如果你懂的补码,就明白了
注解的意思是short int是16位的,所以才有那样的结果。
请看补码的知识点
65,210
社区成员
250,518
社区内容
加载中
试试用AI创作助手写篇文章吧