Is size_t basically the same as an unsigned integer?
This is a discussion on size_t within the C++ Programming forums, part of the General Programming Boards category; Is size_t basically the same as an unsigned integer?...
Is size_t basically the same as an unsigned integer?
I believe it's defined as something like "the smallest unsigned value big enough to return the value returned by the 'sizeof' call". Something to that effect.
Usually it ends up being an unsigned int or an unsigned long.
Quzah.
Hope is the first step on the road to disappointment.
Thank you.
I guess size_t isn't used a lot since I don't believe I've seen it in anyone's code at cprog (maybe I wasn't really looking).