/ * Exacta de ancho entero de tipos * /
typedef firmado carbonilla int8_t ; //范围-128 ~ 127 (1 byte)
typedef int firmado corta int16_t ; //范围-32768 ~ + 32767 (2 bytes)
int typedef firmado int32_t ; //范围-32768 ~ + 32767 (4 bytes)
typedef firmó __int64 int64_t ; //范围-9223372036854775808 ~ 9223372036854775807 (8 bytes)
/ * Tipos exactos de ancho de enteros * / unsigned
typedef unsigned char uint8_t ; // oscilar 255 ~ 0 (. Byte 1)
typedef unsigned int Short uint16_t ; // gama 65.536 ~ 0 (2 bytes)
typedef unsigned int uint32_t ; // rango de 0 4294967295 ~ (. 4 Bytes)
typedef unsigned __int64 uint64_t ; // rango de 0 ~ 18446744073709551615 (8 Byte)
Char ocupa 1 byte
2 bytes short int
int ocupa 4 bytes
largo ocupar 4 bytes
ocupa 4 bytes de longitud int
flotador ocupar 4 bytes
8-byte doble ocupación
(1) en el intervalo de unsigned char: 0 a 2 ^ 8-1 (0 a 255)
(2) rango de valores Char: 2 ~ 7 ^ -2 ^ 7-1 (-128 a 127)
problema:
Char -128 ~ 127 (1 Byte)
corta -32768 ~ + 32767 (2 bytes)
unsigned short 0 ~ 65536 (2 bytes)
int -2147483648 ~ 2147483647 (4 Bytes)
unsigned int 0 ~ 4294967295 (4 bytes)
== larga int
mucho, mucho -9223372036854775808 ~ 9223372036854775807 (8 bytes)
doble 1,7 * 10 ^ 308 (8 bytes)
unsigned int 0 ~ 4294967295
El máximo tiempo largo: 9223372036854775807
El valor mínimo de tiempo largo: -9223372036854775808
El valor máximo de tiempo largo sin signo: 18446744073709551615
El __int64 máxima: 9223372036854775807
__Int64 mínimo de: -9223372036854775808
El máximo __int64 sin firmar: 18446744073709551615
Referencia: https://blog.csdn.net/smile_zhangw/article/details/79063559