www.digitalmars.com         C & C++   DMDScript  

c++.dos - what is size_t ?

reply noobi <noobi_member pathlink.com> writes:
What is size_t and when i can used it ?

thanks for ur help.
Aug 17 2003
next sibling parent Frank Albe <falbe mindspring.com> writes:
In most compilers, 'size_t' is a type definition (typedef) specifying
the kind of integer variable returned by the 'sizeof' operator. It is
used because the exact type returned by 'sizeof' can vary from
implementation to implementation.

For portability, it's a good idea to use 'size_t' when you want a
variable that represents the size of something.

../frank


On Sun, 17 Aug 2003 13:53:11 +0000 (UTC), noobi
<noobi_member pathlink.com> wrote:

What is size_t and when i can used it ?

thanks for ur help.

Aug 17 2003
prev sibling parent Venkatesh <venkateshlanke gmail.com> writes:
Thanks for help...... That was good one simple and easy to understand
Apr 19 2007