Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there types bigger than long long int in C++?

Tags:

c++

types

Are there types bigger than long long int in C++?

My compiler is g++.

like image 615
Michael Avatar asked Mar 21 '11 18:03

Michael


People also ask

Is there something bigger than unsigned long long?

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.

Is Long bigger than int?

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.


2 Answers

There is a gcc extension for 128 bit integers.

like image 124
Jon Avatar answered Oct 16 '22 09:10

Jon


No, but you can use libraries like GMP to handle bigger numbers.

like image 28
jho Avatar answered Oct 16 '22 10:10

jho