型態名稱 | 位元組 | 範圍 |
int,signed,signed int | 4 | –2,147,483,648 to 2,147,483,647 |
unsigned,unsigned int | 4 | 0 to 4,294,967,295 |
short,short int, signed short int | 2 | –32,768 to 32,767 |
unsigned short,unsigned short int | 2 | 0 to 65,535 |
long long,long long int, signed long long | 8 | –9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 |
unsigned long long,unsigned long long int | 8 | 0 to 18,446,744,073,709,551,615 |
long,long int, signed long int | 4 | –2,147,483,648 to 2,147,483,647 |
unsigned long,unsigned long int | 4 | 0 to 4,294,967,295 |
float | 4 | 3.4E +/- 38 (7 digits) |
double | 8 | 1.7E +/- 308 (15 digits) |
long double | 8 | 1.7E +/- 308 (15 digits) |
signed char | 1 | –128 to 127 |
unsigned char | 1 | 0 to 255 |
wchar | 2 | 0 to 65,535 |
bool | 1 | false or true |
enum | varies | none |