Declaring bigger int

This is a discussion on Declaring bigger int within the C Programming forums, part of the General Programming Boards category; How can I declare an integer with the size that I want? I only know that exists class in C++ ...

  1. #1
    Disturbed Boy gustavosserra's Avatar
    Join Date
    Apr 2003
    Posts
    244

    Declaring bigger int

    How can I declare an integer with the size that I want? I only know that exists class in C++ that do this, but with C I have no clue.
    Thanks in advance.
    Nothing more to tell about me...
    Happy day =)

  2. #2
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,220
    tiny int:
    short

    normal int:
    int

    big fat int:
    long

    fatter int:
    long long

  3. #3
    Registered User
    Join Date
    Jun 2003
    Posts
    245
    To go bigger than that, you should use library, like the "Big number library", found here :

    http://indigo.ie/~mscott/

    With this, you specify exactly how big you want your integers to be, but be warned, this will be very much slower than the standard types.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. memory leak
    By aruna1 in forum C++ Programming
    Replies: 3
    Last Post: 08-17-2008, 11:28 PM
  2. Code review
    By Elysia in forum C++ Programming
    Replies: 71
    Last Post: 05-13-2008, 10:42 PM
  3. Moving Average Question
    By GCNDoug in forum C Programming
    Replies: 4
    Last Post: 04-24-2007, 12:05 AM
  4. Working with random like dice
    By SebastionV3 in forum C++ Programming
    Replies: 10
    Last Post: 05-26-2006, 10:16 PM
  5. getting a headache
    By sreetvert83 in forum C++ Programming
    Replies: 41
    Last Post: 09-30-2005, 06:20 AM

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