We're sorry but rendepage doesn't work properly without JavaScript enabled. Please enable it to continue.
web
|
Java
谈谈数据在计算机中补码的概念
千锋教育
补码是从数据的反码得来。
如果是无符号数:
数据的补码就是原码。
如果是有符号数:
正数:数据的补码就是原码;
负数:数据的补码就是反码+1。