Espacios de nombres
Variantes
Acciones

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 es el tipo entero sin signo del resultado del operador sizeof y el operador 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.

[editar] Notas

size_t puede almacenar el tamaño máximo de un objeto teóricamente posible de cualquier tipo (incluyendo array). En muchas plataformas (una excepción son sistemas con segmentada de direcciones) size_t puede almacenar con seguridad el valor de cualquier indicador no miembro, en cuyo caso es sinónimo 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 se utiliza comúnmente para la indización de matriz y el recuento de bucle. Los programas que utilizan otros tipos, como por ejemplo, para la indexación unsigned int array pueden fallar en, por ejemplo, Sistemas de 64 bits cuando el índice sobrepasa UINT_MAX o si se basa en 32-bit aritmética modular .
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.

[editar] Ver también

tipo entero con signo de regresar al restar dos punteros
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]
byte offset from the beginning of a struct type to specified member
(función macro) [edit]