附錄A基礎資料型別

附錄A基礎資料型別

型態名稱位元組範圍
int,signed,signed int4–2,147,483,648 to 2,147,483,647
unsigned,unsigned int40 to 4,294,967,295
short,short int, signed short int2–32,768 to 32,767
unsigned short,unsigned short int20 to 65,535
long long,long long int, signed long long8–9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
unsigned long long,unsigned long long int80 to 18,446,744,073,709,551,615
long,long int, signed long int4–2,147,483,648 to 2,147,483,647
unsigned long,unsigned long int40 to 4,294,967,295
float43.4E +/- 38 (7 digits)
double81.7E +/- 308 (15 digits)
long double81.7E +/- 308 (15 digits)
signed char1–128 to 127
unsigned char10 to 255
wchar20 to 65,535
bool1false or true
enumvariesnone