Namespace
Varianti

size_t

Da cppreference.com.
< c‎ | types

Elemento definito nell'header <stddef.h>
Elemento definito nell'header <stdio.h>
Elemento definito nell'header <string.h>
Elemento definito nell'header <time.h>
typedef /*implementation-defined*/ size_t;
size_t è il tipo intero senza segno del risultato dell'operatore sizeof e l'operatore alignof.
Original:
size_t is the unsigned integer type of the result of the sizeof operator and the alignof operator.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifica] Note

size_t può memorizzare la dimensione massima di un oggetto teoricamente possibile di qualsiasi tipo (compresi array). Su molte piattaforme (una eccezione sono sistemi con indirizzamento segmentato) size_t possibile memorizzare il valore di ogni Stato non membro puntatore, in questo caso è sinonimo di uintptr_t.
Original:
size_t can store the maximum size of a theoretically possible object of any type (including array). On many platforms (an exception are systems with segmented addressing) size_t can safely store the value of any non-member pointer, in which case it is synonymous with uintptr_t.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
size_t è comunemente utilizzato per l'indicizzazione matrice e conteggio loop. I programmi che utilizzano altri tipi, come ad esempio, per l'indicizzazione unsigned int matrice potrebbe non funzionare su, ad esempio, Sistemi a 64 bit, quando l'indice supera UINT_MAX o se si basa su 32 bit aritmetica modulare.
Original:
size_t is commonly used for array indexing and loop counting. Programs that use other types, such as unsigned int, for array indexing may fail on, e.g. 64-bit systems when the index exceeds UINT_MAX or if it relies on 32-bit modular arithmetic.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifica] Vedi anche

firmato tipo intero restituito quando sottraendo due puntatori
Original:
signed integer type returned when subtracting two pointers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(typedef) [modifica]
byte offset from the beginning of a struct type to specified member
(funzione macro) [modifica]