常见数据类型取值范围与10的数量级对照

类型名称 取值范围 数量级
int -2^31~(2^31-1) 2^31=2,147,483,648 10^9
unsigned int  0~(2^32-1) 2^32=4,294,967,296 10^9
long long (_int64) -2^63~(2^63-1)  2^63=9,223,372,036,854,775,808 10^18
unsigned long long (unsigned_int64)  0~(2^64-1)  2^64=18,446,744,073,709,551,616 10^19
原文地址:https://www.cnblogs.com/wizarderror/p/14489597.html