Espaces de noms
Variantes
Affichages
Actions

size_t

De cppreference.com
< c‎ | types

Defined in header <stddef.h>
Defined in header <stdio.h>
Defined in header <string.h>
Defined in header <time.h>
typedef /*implementation-defined*/ size_t;
size_t est du type entier non signé du résultat de l'opérateur et l'opérateur sizeof 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.

[modifier] Notes

size_t peut stocker la taille maximale d'un objet théoriquement possible de tout type (y compris tableau). Sur de nombreuses plateformes (à l'exception des systèmes avec segmenté adressage) size_t pouvez stocker en toute sécurité la valeur d'un pointeur non-membre, auquel cas il est synonyme de 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 est couramment utilisé pour l'indexation et la matrice de comptage de boucle. Les programmes qui utilisent d'autres types, tels que unsigned int, pour l'indexation de tableau peut échouer sur, par exemple, Systèmes 64-bit lorsque l'indice dépasse UINT_MAX ou si elle s'appuie sur 32-bit arithmétique modulaire .
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.

[modifier] Voir aussi

type entier signé retourné lorsque la soustraction de deux pointeurs
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) [edit]
décalage d'octet à partir du début d'un type de structure à organe spécifié
Original:
byte offset from the beginning of a struct type to specified member
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction macro) [edit]