Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do i get 64-bit integers?

integers
0
Posted

How do i get 64-bit integers?

0

Integer types on our platform: char – 8 bits (signed) short – 16 bits int – 32 bits long – 32 bits long long – 64 bits long long is not merely a gcc extension, but part of ISO C99. If you test locally with a compiler other than gcc, the preprocessor may be useful for hiding the differences. For example: #ifdef _GNUC_ #define int64 long long #else /* MSVC, say */ #define int64 __int64 #endif In this way, you can test the same code using 64 bit integers in our environment and on your system. The C++ standard libraries do not include support for arbitrary precision arithmetic.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123