Thread: max int size

  1. #1

    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.

  2. #2
    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