C++ integer data types - by size

Short name Full name Size Min value Max value Output type
char signed char 1B (8bit) 10000000 01111111 Character or numerical
unsigned char unsigned char 1B (8bit) 00000000 11111111 Character or numerical
short signed short int 2B (16bit) 1000000000000000 0111111111111111 Numerical
unsigned short unsigned short int 2B (16bit) 0000000000000000 1111111111111111 Numerical
int signed long int 4B (32bit) 10000000000000000000000000000000 01111111111111111111111111111111 Numerical
unsigned int unsigned long int 4B (32bit) 00000000000000000000000000000000 11111111111111111111111111111111 Numerical
long long int signed long long int 8B (64bit) -922337203685477580810 922337203685477580710 Numerical
unsigned long long int unsigned long long int 8B (64bit) 010 1844674407370955161510 Numerical


Author: Kristijan Burnik