C int types

Standard integer types

The following table lists all int type family.

Type Synonyms
signed char
int signed, signed int
short short int, signed short, signed short int
longlong int, signed long, signed long int
long long long long int, signed long long, signed long long int

For each of the five signed integer types in the table above, there is a corresponding unsigned type that occupies the same amount of memory, These unsigned types are listed in the following table.

TypeSynonyms
unsigned char
unsigned int unsigned
unsigned short unsigned short int
unsigned long unsigned long int
unsigned long long unsigned long long int

Range

KeywordRange
char -128 to 127
int -32,768 to 32,767
short -32,768 to 32,767
short int -32,768 to 32,767
long -2,147,483,648 to 2,147,483,647
unsigned char 0 to 255
unsigned int0 to 65,535
unsigned short 0 to 65,535
unsigned long 0 to 4,294,967,295




















Home »
  C Language »
    Language Basics »




C Language Basics
Data Types
Operator
Statement
Array