Fixed width integer types (dal C99)
Da cppreference.com.
![]() | Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate. La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
[modifica]Tipi
Definizione nell'header <stdint.h> | |
int8_t int16_t int32_t int64_t | firmato tipo intero con larghezza of esattamente 8, 16, 32 e 64 bit respectively with nessun bit padding e con complemento a 2 per values negativo (solo se l'implementazione supporta direttamente il tipo) Original: signed integer type with width of exactly 8, 16, 32 and 64 bits respectively with no padding bits and using 2's complement for negative values (provided only if the implementation directly supports the type) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
int_fast8_t int_fast16_t int_fast32_t int_fast64_t | più veloce firmato firmato tipo intero con larghezza of almeno 8, 16, 32 e 64 bit rispettivamente Original: fastest signed signed integer type with width of at least 8, 16, 32 and 64 bits respectively The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
int_least8_t int_least16_t int_least32_t int_least64_t | più piccolo firmato tipo intero con larghezza of almeno 8, 16, 32 e 64 bit rispettivamente Original: smallest signed integer type with width of at least 8, 16, 32 and 64 bits respectively The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
intmax_t | larghezza massima di tipo intero Original: maximum width integer type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
intptr_t | tipo intero in grado di contenere un puntatore Original: integer type capable of holding a pointer The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
uint8_t uint16_t uint32_t uint64_t | tipo intero senza segno con larghezza of bit esattamente 8, 16, 32 e 64, rispettivamente, (solo se l'implementazione supporta direttamente il tipo) Original: unsigned integer type with width of exactly 8, 16, 32 and 64 bits respectively (provided only if the implementation directly supports the type) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
uint_fast8_t uint_fast16_t uint_fast32_t uint_fast64_t | veloce senza segno tipo intero senza segno con of larghezza di almeno 8, 16, 32 e 64 bit rispettivamente Original: fastest unsigned unsigned integer type with width of at least 8, 16, 32 and 64 bits respectively The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
uint_least8_t uint_least16_t uint_least32_t uint_least64_t | più piccolo di tipo intero senza segno con of larghezza di almeno 8, 16, 32 e 64 bit rispettivamente Original: smallest unsigned integer type with width of at least 8, 16, 32 and 64 bits respectively The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
uintmax_t | massima larghezza di tipo intero senza segno Original: maximum width unsigned integer type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
uintptr_t | tipo intero senza segno in grado di contenere un puntatore Original: unsigned integer type capable of holding a pointer The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[modifica]Macro costanti
Definizione nell'header <stdint.h> | |
Original: Signed integers : minimum value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
INT8_MIN INT16_MIN INT32_MIN INT64_MIN | valore minimo di un oggetto di tipo int8_t, int16_t, int32_t, int64_t Original: minimum value of an object of type int8_t, int16_t, int32_t, int64_t The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (macro costante) |
INT_FAST8_MIN INT_FAST16_MIN INT_FAST32_MIN INT_FAST64_MIN | valore minimo di un oggetto di tipo int_fast8_t, int_fast16_t, int_fast32_t, int_fast64_t Original: minimum value of an object of type int_fast8_t, int_fast16_t, int_fast32_t, int_fast64_t The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (macro costante) |
INT_LEAST8_MIN INT_LEAST16_MIN INT_LEAST32_MIN INT_LEAST64_MIN | valore minimo di un oggetto di tipo int_least8_t, int_least16_t, int_least32_t, int_least64_t Original: minimum value of an object of type int_least8_t, int_least16_t, int_least32_t, int_least64_t The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (macro costante) |
INTPTR_MIN | valore minimo di un oggetto di tipo intptr_t Original: minimum value of an object of type intptr_t The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (macro costante) |
INTMAX_MIN | valore minimo di un oggetto di tipo intmax_t Original: minimum value of an object of type intmax_t The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (macro costante) |
Original: Signed integers : maximum value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
INT8_MAX INT16_MAX INT32_MAX INT64_MAX | valore massimo di un oggetto di tipo int8_t, int16_t, int32_t, int64_t Original: maximum value of an object of type int8_t, int16_t, int32_t, int64_t The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (macro costante) |
INT_FAST8_MAX INT_FAST16_MAX INT_FAST32_MAX INT_FAST64_MAX | valore massimo di un oggetto di tipo int_fast8_t, int_fast16_t, int_fast32_t, int_fast64_t Original: maximum value of an object of type int_fast8_t, int_fast16_t, int_fast32_t, int_fast64_t The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (macro costante) |
INT_LEAST8_MAX INT_LEAST16_MAX INT_LEAST32_MAX INT_LEAST64_MAX | valore massimo di un oggetto di tipo int_least8_t, int_least16_t, int_least32_t, int_least64_t Original: maximum value of an object of type int_least8_t, int_least16_t, int_least32_t, int_least64_t The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (macro costante) |
INTPTR_MAX | valore massimo di un oggetto di tipo intptr_t Original: maximum value of an object of type intptr_t The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (macro costante) |
INTMAX_MAX | valore massimo di un oggetto di tipo intmax_t Original: maximum value of an object of type intmax_t The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (macro costante) |
Original: Unsigned integers : maximum value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
UINT8_MAX UINT16_MAX UINT32_MAX UINT64_MAX | valore massimo di un oggetto di tipo uint8_t, uint16_t, uint32_t, uint64_t Original: maximum value of an object of type uint8_t, uint16_t, uint32_t, uint64_t The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (macro costante) |
UINT_FAST8_MAX UINT_FAST16_MAX UINT_FAST32_MAX UINT_FAST64_MAX | valore massimo di un oggetto di tipo uint_fast8_t, uint_fast16_t, uint_fast32_t, uint_fast64_t Original: maximum value of an object of type uint_fast8_t, uint_fast16_t, uint_fast32_t, uint_fast64_t The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (macro costante) |
UINT_LEAST8_MAX UINT_LEAST16_MAX UINT_LEAST32_MAX UINT_LEAST64_MAX | valore massimo di un oggetto di tipo uint_least8_t, uint_least16_t, uint_least32_t, uint_least64_t Original: maximum value of an object of type uint_least8_t, uint_least16_t, uint_least32_t, uint_least64_t The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (macro costante) |
UINTPTR_MAX | valore massimo di un oggetto di tipo uintptr_t Original: maximum value of an object of type uintptr_t The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (macro costante) |
UINTMAX_MAX | valore massimo di un oggetto di tipo uintmax_t Original: maximum value of an object of type uintmax_t The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (macro costante) |
[modifica]Formato macro costanti
This section is incomplete Reason: will look better as a table |
Definizione nell'header <inttypes.h> | |
Original: Format constants for the fprintf family of functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
PRId8 PRId16 PRId32 PRId64 PRIdLEAST8 PRIdLEAST16 PRIdLEAST32 PRIdLEAST64 PRIdFAST8 PRIdFAST16 PRIdFAST32 PRIdFAST64 PRIdMAX PRIdPTR | specificatore di formato di conversione per produrre una firma valore decimale intero di tipo int8_t, int16_t, int32_t, int64_t, int_least8_t, int_least16_t, int_least32_t, int_least64_t, int_fast8_t, int_fast16_t, int_fast32_t, int_fast64_t, intmax_t, intptr_t rispettivamente, pari a %d per intOriginal: format conversion specifier to output a signed decimal integer value of type int8_t, int16_t, int32_t, int64_t, int_least8_t, int_least16_t, int_least32_t, int_least64_t, int_fast8_t, int_fast16_t, int_fast32_t, int_fast64_t, intmax_t, intptr_t respectively, equivalent to %d for intThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (macro costante) |
PRIi8 PRIi16 PRIi32 PRIi64 PRIiLEAST8 PRIiLEAST16 PRIiLEAST32 PRIiLEAST64 PRIiFAST8 PRIiFAST16 PRIiFAST32 PRIiFAST64 PRIiMAX PRIiPTR | specificatore di formato di conversione per produrre una firma valore decimale intero di tipo int8_t, int16_t, int32_t, int64_t, int_least8_t, int_least16_t, int_least32_t, int_least64_t, int_fast8_t, int_fast16_t, int_fast32_t, int_fast64_t, intmax_t, intptr_t rispettivamente, pari a %i per intOriginal: format conversion specifier to output a signed decimal integer value of type int8_t, int16_t, int32_t, int64_t, int_least8_t, int_least16_t, int_least32_t, int_least64_t, int_fast8_t, int_fast16_t, int_fast32_t, int_fast64_t, intmax_t, intptr_t respectively, equivalent to %i for intThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (macro costante) |
PRIu8 PRIu16 PRIu32 PRIu64 PRIuLEAST8 PRIuLEAST16 PRIuLEAST32 PRIuLEAST64 PRIuFAST8 PRIuFAST16 PRIuFAST32 PRIuFAST64 PRIuMAX PRIuPTR | conversione di formato specificatore per emettere un valore intero decimale senza segno di tipo uint8_t, uint16_t, uint32_t, uint64_t, uint_least8_t, uint_least16_t, uint_least32_t, uint_least64_t, uint_fast8_t, uint_fast16_t, uint_fast32_t, uint_fast64_t, uintmax_t, uintptr_t rispettivamente, pari a %u per unsignedintOriginal: format conversion specifier to output an unsigned decimal integer value of type uint8_t, uint16_t, uint32_t, uint64_t, uint_least8_t, uint_least16_t, uint_least32_t, uint_least64_t, uint_fast8_t, uint_fast16_t, uint_fast32_t, uint_fast64_t, uintmax_t, uintptr_t respectively, equivalent to %u for unsignedintThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (macro costante) |
PRIo8 PRIo16 PRIo32 PRIo64 PRIoLEAST8 PRIoLEAST16 PRIoLEAST32 PRIoLEAST64 PRIoFAST8 PRIoFAST16 PRIoFAST32 PRIoFAST64 PRIoMAX PRIoPTR | conversione di formato specificatore per emettere un ottale senza segno valore intero di tipo uint8_t, uint16_t, uint32_t, uint64_t, uint_least8_t, uint_least16_t, uint_least32_t, uint_least64_t, uint_fast8_t, uint_fast16_t, uint_fast32_t, uint_fast64_t, uintmax_t, uintptr_t rispettivamente, pari a %o per unsignedintOriginal: format conversion specifier to output an unsigned octal integer value of type uint8_t, uint16_t, uint32_t, uint64_t, uint_least8_t, uint_least16_t, uint_least32_t, uint_least64_t, uint_fast8_t, uint_fast16_t, uint_fast32_t, uint_fast64_t, uintmax_t, uintptr_t respectively, equivalent to %o for unsignedintThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (macro costante) |
PRIx8 PRIx16 PRIx32 PRIx64 PRIxLEAST8 PRIxLEAST16 PRIxLEAST32 PRIxLEAST64 PRIxFAST8 PRIxFAST16 PRIxFAST32 PRIxFAST64 PRIxMAX PRIxPTR | conversione di formato specificatore per emettere un intero senza segno valore esadecimale di tipo uint8_t, uint16_t, uint32_t, uint64_t, uint_least8_t, uint_least16_t, uint_least32_t, uint_least64_t, uint_fast8_t, uint_fast16_t, uint_fast32_t, uint_fast64_t, uintmax_t, uintptr_t rispettivamente, pari a %x per unsignedintOriginal: format conversion specifier to output an unsigned hexadecimal integer value of type uint8_t, uint16_t, uint32_t, uint64_t, uint_least8_t, uint_least16_t, uint_least32_t, uint_least64_t, uint_fast8_t, uint_fast16_t, uint_fast32_t, uint_fast64_t, uintmax_t, uintptr_t respectively, equivalent to %x for unsignedintThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (macro costante) |
PRIX8 PRIX16 PRIX32 PRIX64 PRIXLEAST8 PRIXLEAST16 PRIXLEAST32 PRIXLEAST64 PRIXFAST8 PRIXFAST16 PRIXFAST32 PRIXFAST64 PRIXMAX PRIXPTR | conversione di formato specificatore per emettere un valore esadecimale senza segno maiuscolo intero di tipo uint8_t, uint16_t, uint32_t, uint64_t, uint_least8_t, uint_least16_t, uint_least32_t, uint_least64_t, uint_fast8_t, uint_fast16_t, uint_fast32_t, uint_fast64_t, uintmax_t, uintptr_t rispettivamente, pari a %X per unsignedintOriginal: format conversion specifier to output an unsigned uppercase hexadecimal integer value of type uint8_t, uint16_t, uint32_t, uint64_t, uint_least8_t, uint_least16_t, uint_least32_t, uint_least64_t, uint_fast8_t, uint_fast16_t, uint_fast32_t, uint_fast64_t, uintmax_t, uintptr_t respectively, equivalent to %X for unsignedintThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (macro costante) |
Original: Format constants for the fscanf family of functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
SCNd8 SCNd16 SCNd32 SCNd64 SCNdLEAST8 SCNdLEAST16 SCNdLEAST32 SCNdLEAST64 SCNdFAST8 SCNdFAST16 SCNdFAST32 SCNdFAST64 SCNdMAX SCNdPTR | specificatore di conversione di formato per inserire una firma valore decimale intero di tipo int8_t, int16_t, int32_t, int64_t, int_least8_t, int_least16_t, int_least32_t, int_least64_t, int_fast8_t, int_fast16_t, int_fast32_t, int_fast64_t, intmax_t, intptr_t rispettivamente, pari a %d per intOriginal: format conversion specifier to input a signed decimal integer value of type int8_t, int16_t, int32_t, int64_t, int_least8_t, int_least16_t, int_least32_t, int_least64_t, int_fast8_t, int_fast16_t, int_fast32_t, int_fast64_t, intmax_t, intptr_t respectively, equivalent to %d for intThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (macro costante) |
SCNi8 SCNi16 SCNi32 SCNi64 SCNiLEAST8 SCNiLEAST16 SCNiLEAST32 SCNiLEAST64 SCNiFAST8 SCNiFAST16 SCNiFAST32 SCNiFAST64 SCNiMAX SCNiPTR | conversione di formato per inserire un decimale con segno / ottale / esadecimale valore intero di tipo int8_t, int16_t, int32_t, int64_t, int_least8_t, int_least16_t, int_least32_t, int_least64_t, int_fast8_t, int_fast16_t, int_fast32_t, int_fast64_t, intmax_t, intptr_t rispettivamente, pari a %i per intOriginal: format conversion specifier to input a signed decimal/octal/hexadecimal integer value of type int8_t, int16_t, int32_t, int64_t, int_least8_t, int_least16_t, int_least32_t, int_least64_t, int_fast8_t, int_fast16_t, int_fast32_t, int_fast64_t, intmax_t, intptr_t respectively, equivalent to %i for intThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (macro costante) |
SCNu8 SCNu16 SCNu32 SCNu64 SCNuLEAST8 SCNuLEAST16 SCNuLEAST32 SCNuLEAST64 SCNuFAST8 SCNuFAST16 SCNuFAST32 SCNuFAST64 SCNuMAX SCNuPTR | conversione di formato specificatore di inserire un numero intero senza segno valore decimale di tipo uint8_t, uint16_t, uint32_t, uint64_t, uint_least8_t, uint_least16_t, uint_least32_t, uint_least64_t, uint_fast8_t, uint_fast16_t, uint_fast32_t, uint_fast64_t, uintmax_t, uintptr_t rispettivamente, pari a %u per unsignedintOriginal: format conversion specifier to input an unsigned decimal integer value of type uint8_t, uint16_t, uint32_t, uint64_t, uint_least8_t, uint_least16_t, uint_least32_t, uint_least64_t, uint_fast8_t, uint_fast16_t, uint_fast32_t, uint_fast64_t, uintmax_t, uintptr_t respectively, equivalent to %u for unsignedintThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (macro costante) |
SCNo8 SCNo16 SCNo32 SCNo64 SCNoLEAST8 SCNoLEAST16 SCNoLEAST32 SCNoLEAST64 SCNoFAST8 SCNoFAST16 SCNoFAST32 SCNoFAST64 SCNoMAX SCNoPTR | conversione di formato specificatore di inserire un valore intero senza segno ottale di tipo uint8_t, uint16_t, uint32_t, uint64_t, uint_least8_t, uint_least16_t, uint_least32_t, uint_least64_t, uint_fast8_t, uint_fast16_t, uint_fast32_t, uint_fast64_t, uintmax_t, uintptr_t rispettivamente, pari a %o per unsignedintOriginal: format conversion specifier to input an unsigned octal integer value of type uint8_t, uint16_t, uint32_t, uint64_t, uint_least8_t, uint_least16_t, uint_least32_t, uint_least64_t, uint_fast8_t, uint_fast16_t, uint_fast32_t, uint_fast64_t, uintmax_t, uintptr_t respectively, equivalent to %o for unsignedintThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (macro costante) |
SCNx8 SCNx16 SCNx32 SCNx64 SCNxLEAST8 SCNxLEAST16 SCNxLEAST32 SCNxLEAST64 SCNxFAST8 SCNxFAST16 SCNxFAST32 SCNxFAST64 SCNxMAX SCNxPTR | conversione di formato specificatore di inserire un numero intero senza segno valore esadecimale di tipo uint8_t, uint16_t, uint32_t, uint64_t, uint_least8_t, uint_least16_t, uint_least32_t, uint_least64_t, uint_fast8_t, uint_fast16_t, uint_fast32_t, uint_fast64_t, uintmax_t, uintptr_t rispettivamente, pari a %x per unsignedintOriginal: format conversion specifier to input an unsigned hexadecimal integer value of type uint8_t, uint16_t, uint32_t, uint64_t, uint_least8_t, uint_least16_t, uint_least32_t, uint_least64_t, uint_fast8_t, uint_fast16_t, uint_fast32_t, uint_fast64_t, uintmax_t, uintptr_t respectively, equivalent to %x for unsignedintThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (macro costante) |
SCNX8 SCNX16 SCNX32 SCNX64 SCNXLEAST8 SCNXLEAST16 SCNXLEAST32 SCNXLEAST64 SCNXFAST8 SCNXFAST16 SCNXFAST32 SCNXFAST64 SCNXMAX SCNXPTR | conversione di formato specificatore di inserire un valore esadecimale senza segno maiuscolo intero di tipo uint8_t, uint16_t, uint32_t, uint64_t, uint_least8_t, uint_least16_t, uint_least32_t, uint_least64_t, uint_fast8_t, uint_fast16_t, uint_fast32_t, uint_fast64_t, uintmax_t, uintptr_t rispettivamente, pari a %X per unsignedintOriginal: format conversion specifier to input an unsigned uppercase hexadecimal integer value of type uint8_t, uint16_t, uint32_t, uint64_t, uint_least8_t, uint_least16_t, uint_least32_t, uint_least64_t, uint_fast8_t, uint_fast16_t, uint_fast32_t, uint_fast64_t, uintmax_t, uintptr_t respectively, equivalent to %X for unsignedintThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (macro costante) |