#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Location
    lincoln
    Posts
    7
    Rep Power
    0

    Help with long long int.


    Hi All,
    I am trying to take "9111111111" in to a variable which is of type "long long" but it throws an error "Integer constant 9111111111 out of range". Can some please tell me what the problem is as it should be in range.

    Thanks in advance,
    Mani.
  2. #2
  3. No Profile Picture
    status unknown
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2003
    Posts
    262
    Rep Power
    12
    Are you using the LL suffix to identify it as a long long? If not, perhaps your compiler thinks it's a plain integer by default?
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Location
    lincoln
    Posts
    7
    Rep Power
    0
    Thanks BigBadBob .....I appended the var with LL and got it to work...

    -Mani

IMN logo majestic logo threadwatch logo seochat tools logo