+ 1
[C/C++] size_t
Please, help me to understand what size_t does in C/C++.
4 Answers
+ 3
size_t is unsigned int. It is used to define the size of an object.
+ 2
The return type of the sizeof operator is also size_t.
+ 1
CarrieForle Thanks a lot!
+ 1
size_t actually mean an unsigned integer which equally defines the size of an integer variable.
When you see unsigned, it means it has no sign. Only the invisible positive.
When you see signed, it means has a sign. Either negative or the invisible positive.