max int size

This is a discussion on max int size within the C++ Programming forums, part of the General Programming Boards category; im trying to find the largest memmory allocation for an unsigned int. Ive tried unsigned long but it didnt get ...

  1. #1
    Unregistered
    Guest

    max int size

    im trying to find the largest memmory allocation for an unsigned int.
    Ive tried unsigned long but it didnt get me any further.
    so my question:
    int = 4 bytes
    double = 8 bytes
    unsigned long = ?
    what is the type of the theoretical largest number i can represent in C++
    i know that in windows accessory calculator i can caluculate 2^144,000 so there must be some kind of work around.
    tia,
    Hoops

  2. #2
    Unregistered
    Guest
    try lookin the includes section of your compiler for the limit.h file or possibly the help section of the compiler for the definition of MAXINT, MAXLONG. I believe the maximum number given type long is something like 19 digits.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to combine these working parts??
    By transgalactic2 in forum C Programming
    Replies: 0
    Last Post: 02-01-2009, 07:19 AM
  2. Replies: 1
    Last Post: 10-27-2006, 01:21 PM
  3. Need help understanding info in a header file
    By hicpics in forum C Programming
    Replies: 8
    Last Post: 12-02-2005, 11:36 AM
  4. problem with sorting
    By pinkpenguin in forum C Programming
    Replies: 2
    Last Post: 11-18-2005, 10:06 AM
  5. How do you search & sort an array?
    By sketchit in forum C Programming
    Replies: 30
    Last Post: 11-03-2001, 04:26 PM

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