1. 程式人生 > >c++常用變數值的範圍

c++常用變數值的範圍

int,long,unsigned的值範圍

unsigned int —— 0~4294967295

int —— -2147483648~2147483647

unsigned long —— 0~4294967295

long —— -2147483648~2147483647

long long —— -9223372036854775808 ~ 9223372036854775807

unsigned long long —— 0~18446744073709551615

__int64與long long貌似是一樣的