You are on page 1of 1

Sizes and Ranges of basic data types in C for a 16 bit computer

Data type
char
unsigned char
signed char
int
unsigned int
signed int
short int
unsigned short int
signed short int
long int
unsigned long int
signed long int
float
double
long double

Size(in
bytes)
1 byte
1 byte
1 byte
2 bytes
2 bytes
2 bytes
2 bytes
2 bytes
2 bytes
4 bytes
4 bytes
4 bytes
4 bytes
8 bytes
10 bytes

Range of value set

Default type

-127 to 128
0 to 255
-127 to 128
-32768 to 32767
0 to 65535
-32768 to 32767
-32768 to 32767
0 to 65535
-32768 to 32767
-2147483648 to 2147483647
0 to 4294967295
-2147483648 to 2147483647
3.4x10 -38 to 3.4 x 10 +38
1.7x 10 -308 to 1.7 x 10 +308
3.4 x10 -4932 to 1.1 x10 4932

signed char
None
char
signed int
unsigned
int
short, signed short, signed short int
unsigned short
short, signed short, short int
long, signed long, signed long int
unsigned long
long int, signed long, long
-------

Reference: Computer fundamentals and programming in C Pradip Dey and Manas Ghosh, Oxford
Univ. press, 2006

You might also like