Límites de enterosInteger Limits
Específico de MicrosoftMicrosoft-specific
Los límites de los tipos enteros se muestran en la tabla siguiente.The limits for integer types are listed in the following table. Las macros de preprocesador para estos límites también se definen al incluir el archivo de encabezado estándar <climits> .Preprocessor macros for these limits are also defined when you include the standard header file <climits>.
Límites en constantes de enterosLimits on Integer Constants
ConstanteConstant | SignificadoMeaning | ValorValue |
---|---|---|
CHAR_BIT |
Número de bits de la variable menor que no es un campo de bits.Number of bits in the smallest variable that is not a bit field. | 88 |
SCHAR_MIN |
Valor mínimo de una variable de tipo signed char .Minimum value for a variable of type signed char . |
-128-128 |
SCHAR_MAX |
Valor máximo de una variable de tipo signed char .Maximum value for a variable of type signed char . |
127127 |
UCHAR_MAX |
Valor máximo de una variable de tipo unsigned char .Maximum value for a variable of type unsigned char . |
255 (0xff)255 (0xff) |
CHAR_MIN |
Valor mínimo de una variable de tipo char .Minimum value for a variable of type char . |
-128; 0 si se /J usa la opción-128; 0 if /J option used |
CHAR_MAX |
Valor máximo de una variable de tipo char .Maximum value for a variable of type char . |
127; 255 si se /J usa la opción127; 255 if /J option used |
MB_LEN_MAX |
Número máximo de bytes de una constante de varios caracteres.Maximum number of bytes in a multicharacter constant. | 55 |
SHRT_MIN |
Valor mínimo de una variable de tipo short .Minimum value for a variable of type short . |
-32768-32768 |
SHRT_MAX |
Valor máximo de una variable de tipo short .Maximum value for a variable of type short . |
3276732767 |
USHRT_MAX |
Valor máximo de una variable de tipo unsigned short .Maximum value for a variable of type unsigned short . |
65535 (0xffff)65535 (0xffff) |
INT_MIN |
Valor mínimo de una variable de tipo int .Minimum value for a variable of type int . |
-2147483648-2147483648 |
INT_MAX |
Valor máximo de una variable de tipo int .Maximum value for a variable of type int . |
21474836472147483647 |
UINT_MAX |
Valor máximo de una variable de tipo unsigned int .Maximum value for a variable of type unsigned int . |
4294967295 (0xffffffff)4294967295 (0xffffffff) |
LONG_MIN |
Valor mínimo de una variable de tipo long .Minimum value for a variable of type long . |
-2147483648-2147483648 |
LONG_MAX |
Valor máximo de una variable de tipo long .Maximum value for a variable of type long . |
21474836472147483647 |
ULONG_MAX |
Valor máximo de una variable de tipo unsigned long .Maximum value for a variable of type unsigned long . |
4294967295 (0xffffffff)4294967295 (0xffffffff) |
LLONG_MIN |
Valor mínimo de una variable de tipo long long Minimum value for a variable of type long long |
-9223372036854775808-9223372036854775808 |
LLONG_MAX |
Valor máximo de una variable de tipo long long Maximum value for a variable of type long long |
92233720368547758079223372036854775807 |
ULLONG_MAX |
Valor máximo de una variable de tipo unsigned long long Maximum value for a variable of type unsigned long long |
18446744073709551615 (0xffffffffffffffff)18446744073709551615 (0xffffffffffffffff) |
Si un valor supera la representación de entero mayor, el compilador de Microsoft genera un error.If a value exceeds the largest integer representation, the Microsoft compiler generates an error.