bool |
1 byte |
True/False |
char |
1 byte |
-128 to 127 or 0 to 255 |
signed char |
1 byte |
-128 to 127 |
unsigned char |
1 byte |
0 to 255 |
short int |
2 bytes |
-32,768 to 32,767 |
signed short int |
2 bytes |
-32,768 to 32,767 |
unsigned short int |
2 bytes |
0 to 65,535 |
int |
2 or 4 bytes |
-32768 to +32768 or -2,147,483,648 to +2,147,483,648 |
signed int |
2 or 4 bytes |
-32768 to +32768 or -2,147,483,648 to +2,147,483,648 |
unsigned int |
2 or 4 bytes |
0 to +65,535 or 0 to +4,294,967,295 |
long int |
4 or 8 bytes |
-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 |
signed long int |
4 or 8 bytes |
0 to 4,294,967,295 or 0 to 18,446,744,073,709,551,615 |
unsigned long int |
4 or 8 bytes |
-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 |
float |
4 bytes |
1.17549e-38 to 3.40282e+38 |
Double Floating Point |
8 bytes |
2.22507e-308 to 1.79769e+308 |
Long Double Floating Point |
16 bytes |
-3.3621e-4932 to +3.3621e-4932 |
Wide character |
2 or 4 |
1 wide character |