8.3 Integer Data Types

Integer values in the compiler are represented in 2’s complement and vary in size from 8 to 64 bits. These values are available in compiled code via limits.h.

TypeBitsMinMax
signed char8-128127
char, unsigned char80255
short, signed short16-3276832767
unsigned short16065535
int, signed int, long, signed long32-231231-1
unsigned int, unsigned long320232-1
long long, signed long long64-263263-1
unsigned long long640264-1