Data Type |
Occupies |
Range |
Format |
signed char |
1 Byte |
-128 – 127 |
%c |
unsigned char |
1 Byte |
0 – 255 |
%c |
short signed |
2 Bytes |
-32768 – 32767 |
%d |
short unsigned |
2 Bytes |
0 – 65535 |
%u |
long signed |
4 Bytes |
-2147483648 – 2147483647 |
%ld |
long unsigned |
4 Bytes |
0 – 4294967295 |
%lu |
float |
4 Bytes |
3.4e-38 – 3.4e38 |
%f |
double |
8 Bytes |
1.7e-308 – 1.7e308 |
%lf |