I want to know about size_t. What is it?? a daatype or anything else?? Please post if anyone has an idea regarding the same. I am new to this forum and am interested in interraction on C++.
size_t is used by standard library to represent a size, for exemple a size to allocate or an offset in a file. I think it is an alias of unsigned int but i's probably compiler dependanrt.
> size_t is used by standard library to represent a size,
An alias for some unsigned basic integral type that is large enough to represent the size (number of bytes occupied in memory) of any object. Usually either an unsigned int or an unsigned long; though an unsigned long long is allowed.
> for exemple a size to allocate or an offset in a file
That is a std::streamoff - an alias for some signed basic integral type that is large enough to represent the maximum possible size of a file.