Integer Types

Integer data type lists the name, size, and range of the integer data types.

Table 1. Integer data type
This type has this size and holds this range of values
short 16 bits -32,768 to 32,767
unsigned short 16 bits 0 to 65,535
int 32 bits -2,147,483,648 to 2,147,483,647
unsigned int 32 bits 0 to 4,294,967,295
long 32 bits -2,147,483,648 to 2,147,483,647
unsigned long 32 bits 0 to 4,294,967,295
long long 64 bits -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
unsigned long long 64 bits 0 to 18,446,744,073,709,551,615

The compiler recognizes the long long data type when pragma longlong is on or when compiling C99 source code (ISO/IEC 9899-1999 standard).