C Integer Data Types
Type Storage Size Value Range
(Signed/Unsigned)
char 1 byte -128 to 127 (signed) or 0 to
255 (unsigned)
unsigned char 1 byte (8 bits) 0 to 255
signed char 1 byte -128 to 127
int (default signed) 2 or 4 bytes -32,768 to 32,767 (2 bytes)
or -2,147,483,648 to
2,147,483,647 (4 bytes)
unsigned int 2 or 4 bytes 0 to 65,535 (2 bytes) or 0 to
4,294,967,295 (4 bytes)
short int (default signed) 2 bytes -32,768 to 32,767
long int (default signed) 4 bytes -2,147,483,648 to
2,147,483,647
short (default signed) 2 bytes -32,768 to 32,767
unsigned short 2 bytes 0 to 65,535
long (default signed) 4 bytes -2,147,483,648 to
2,147,483,647
unsigned long 4 bytes 0 to 4,294,967,295
long long int (default 8 bytes -9,223,372,036,854,775,808
signed) to
9,223,372,036,854,775,807
unsigned long long 8 bytes 0 to
18,446,744,073,709,551,61
5