数据类型 | 占用空间 | 取值范围 | 取值范围(科学计数) |
short(短整型) | 2byte | -32768~32767 | -2^15~2^15-1 |
int(整型) | 4byte | -2147483648~214743647 | -2^31~2^31-1 |
long(长整型) | Windows为4字节,Linux为字节,8字节 | 4字节范围同上,8字节范围同下 | 4字节范围同上,8字节范围同下 |
long long(长长整型) | 8字节 | -9,223,372,036,854,775,808 ~9,223,372,036,854,775,807 | -2^63~2^63-1 |
欢迎光临 qidao123.com技术社区-IT企服评测·应用市场 (https://dis.qidao123.com/) | Powered by Discuz! X3.4 |