Note that the size_t type is not a reserved word of C/C++ languages and is defined through the typedef specifier in the standard header file as a type of the result returned by the sizeof operator and is chosen so that it could store the maximum size of a theoretically possible array of any type, i.e. size_t will be 32-bit on a 32-bit system and 64-bit on a 64-bit one.
References
- Discussion at stackoverflow.com. Is size_t only in C++ standard or C standard as well?
- Andrey Karpov, Evgeniy Ryzhkov. 64-bit lessons. Lesson 5. Building a 64-bit application
- Discussion at stackoverflow.com. Does "std::size_t" make sense in C++?
Комментариев нет:
Отправить комментарий