C++常用数据类型数值范围

C++常用数据类型数值范围:


(signed) char -128~127 
unsigned char 0~255 
(signed) short (int) -32,768~32,767(-2^15 ~ 2^15-1) 
unsigned short (int) 0~65535 
(signed) long  (int) -2,147,483,648~2,147,483,647 
unsigned long  (int) 0~4,294,967,295

你可能感兴趣的:(C++,c)