int |
Represents a signed integer (can be positive, negative or zero) |
2 or 4 |
-32,768 to 32,767 or -2,147,483,648 to 2,147,483,647 |
short |
Represents a short integer |
2 |
-32,768 to 32,767 |
long |
Represents a long integer |
4 or 8 |
-2,147,483,648 to 2,147,483,647 or -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 |
long long |
Represents a very long integer |
8 |
-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 |
unsigned int |
Represents an unsigned integer (only positive or zero) |
2 or 4 |
0 to 65,535 or 0 to 4,294,967,295 |
unsigned short |
Represents an unsigned short integer |
2 |
0 to 65,535 |
unsigned long |
Represents an unsigned long integer |
4 or 8 |
0 to 4,294,967,295 or 0 to 18,446,744,073,709,551,615 |
unsigned long long |
Represents an unsigned very long integer |
8 |
0 to 18,446,744,073,709,551,615 |
float |
Represents a floating point number |
4 |
1.2E-38 to 3.4E+38 |
double |
Represents a double precision floating point number |
8 |
2.3E-308 to 1.7E+308 |
long double |
Represents an extended precision floating point number |
10 or 12 or 16 |
3.4E-4932 to 1.1E+4932 or 3.4E-4932 to 1.2E+4932 or 3.4E-4932 to 1.2E+4932 |
char |
Represents a single character |
1 |
-128 to 127 or 0 to 255 |
unsigned char |
Represents an unsigned single character |
1 |
0 to 255 |