Datatypes in C

Datatypes sumary in C:

Data Type Range Bytes Format
 signed char -128 to +127  1 %c
 unsigned char  0 to 255  1 %c
 short signed int -32768 to +32767 2 %d
 short unsigned int 0 to 65535 2 %u
signed int  -32768 to +32767  2 %d
 unsigned int 0 to 65535  2  %u
 long signed int  -2147483648 to +2147483647 4 %ld
 long unsigned int 0 to 4294967295 4 %lu
float  -3.4e38 to +3.4e38  4  %f
 double  -1.7e308 to +1.7e308  8  %lf
 long double  -1.7e4932 to +1.7e4932  10  %Lf
-32768 to +32767 2 %d
The sizes and ranges of int,short and long are compiler dependent. The above data is for 16 bit compiler.