--------------------------------------------------------------------------
类型 大小 值 ┆
--------------------------------------------------------------------------------------
bool 1字节 true 或 false ┆
--------------------------------------------------------------------------------------
unsigned short int 2字节 0-65535 ┆
--------------------------------------------------------------------------------------
short int 2字节 -32768 - 32767 ┆
--------------------------------------------------------------------------------------
unsigned long int 4字节 0 - 4294967295 ┊
--------------------------------------------------------------------------------------
long int 4字节 -2147483648 - 2147483647 ┆
--------------------------------------------------------------------------------------
int(16位) 2字节 -32768 - 32767 ┆
--------------------------------------------------------------------------------------
int(32位) 4字节 -2147483648 - 2147483647 ┆
--------------------------------------------------------------------------------------
unsigned int(16位) 2字节 0-65535 ┆
--------------------------------------------------------------------------------------
unsigned int(32位) 4字节 0 - 4294967295 ┆
--------------------------------------------------------------------------------------
char 1字节 256个字符 ┆
--------------------------------------------------------------------------------------
float 4字节 1.2e-38 - 3.4e38 ┆
--------------------------------------------------------------------------------------
double 8字节 2.2e-308 - 1.8e308 ┆
--------------------------------------------------------------------------------------
变量取值范围
最新推荐文章于 2021-06-01 16:28:26 发布