3

I want to know the main difference with unsigned long long and unsigned long long int. Can they be used inter-changeably.

For calculations involving huge decimal numbers like 9223372036854775807, which one is preferred? Thanks.

Safwan Ull Karim
  • 552
  • 3
  • 9
  • 18
  • 5
    They are the same type. The `int` is optional. – Rob K Apr 08 '16 at 15:33
  • 1. https://msdn.microsoft.com/en-us/library/s3f49ktz.aspx 2. https://msdn.microsoft.com/en-us/library/cc953fe1.aspx 3. _Type long (or long int) is an integral type_ – Ceros Apr 08 '16 at 15:36
  • If you are dealing with large (or very small) numbers, you might want to investigate the applicability of an arbitrary precision math library. – IInspectable Apr 08 '16 at 16:08
  • just like `long` is no different than `long int`, and `short` is just a shorter name for `short int` – phuclv Apr 08 '16 at 16:09

1 Answers1

3

Both of following types are semantically equivalent: minimum 64bit integer without sign and with equal or bigger size than unsigned long int

unsigned long long

unsigned long long int

Community
  • 1
  • 1
Adrian Maire
  • 11,506
  • 8
  • 34
  • 72