What is size_t?

This is a discussion on What is size_t? within the C++ Programming forums, part of the General Programming Boards category; What is size_t and when do you use it. I can't find any info about it in my books....

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    37

    What is size_t?

    What is size_t and when do you use it. I can't find any info about it in my books.

  2. #2
    the Wizard
    Join Date
    Aug 2004
    Posts
    109
    Try googling it.
    That helps alot, when you books fail.

    Good luck with your research
    Last edited by MipZhaP; 02-26-2005 at 06:44 AM.
    -//Marc Poulsen -//MipZhaP

    He sat down, he programmed, he got an error...

  3. #3
    Registered User
    Join Date
    Feb 2005
    Posts
    11

    Smile

    using sizeof operator to determine the size of an array( or of any other data type , variable or constant) in bytes during program compilation.The sizeof operator return the total number of bytes in the array as a value of type size_t (which usually unsigned int)

    good luck
    Last edited by silent_eyes; 02-27-2005 at 04:11 AM.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21