Are there types bigger than long long int in C++?
My compiler is g++.
A double or long double can typically represent numbers with larger magnitudes than a long long , but often with less precision (e.g., frequently 53 bits vs., 63 bits for a long long). If you want a larger integer type, you'll typically want to use a library.
On many (but not all) C and C++ implementations, a long is larger than an int. Today's most popular desktop platforms, such as Windows and Linux, run primarily on 32 bit processors and most compilers for these platforms use a 32 bit int which has the same size and representation as a long.
There is a gcc extension for 128 bit integers.
No, but you can use libraries like GMP to handle bigger numbers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With