variable size limits

This is a discussion on variable size limits within the C Programming forums, part of the General Programming Boards category; This variable size limits thing has me confused, does the quote below mean that on a half decent windows computer ...

  1. #1
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,422

    variable size limits

    This variable size limits thing has me confused, does the quote below mean that on a half decent windows computer using a modern compiler i can expect to be able to use a signed integer to count up to 2billion? i can remember them years ago being limited to 16,000, what goes on?

    the quote shown is from a copy of C++ for dummies >

    A second problem with the int variable type is its limited range. A normal
    int variable can store a maximum value of 2,147,483,647 and a minimum value
    of 2,147,483,648 roughly from positive 2 billion to negative 2 billion, for a
    total range of about 4 billion.

  2. #2
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    > half decent windows computer using a modern compiler i can expect
    Expect? No. But more than likely it is so.

    See limits.h - Wikipedia, the free encyclopedia

    The ANSI standard says it must at least range from –32,767 to 32,767.

  3. #3
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,422
    haha ok thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Variable Array Size From Command Line Argument?
    By Cell in forum C Programming
    Replies: 6
    Last Post: 03-30-2009, 09:08 PM
  2. Code review
    By Elysia in forum C++ Programming
    Replies: 71
    Last Post: 05-13-2008, 09:42 PM
  3. Error with a vector
    By Tropicalia in forum C++ Programming
    Replies: 20
    Last Post: 09-28-2006, 07:45 PM
  4. help on variable size array
    By 1qaz1234 in forum C++ Programming
    Replies: 7
    Last Post: 02-23-2005, 11:02 AM
  5. Replies: 11
    Last Post: 03-25-2003, 04:13 PM

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