10^18 data type in c++
10^18 Data Type in C++
In C++, the data type for 10^18 is long long
. This data type can hold integers in the range of at least -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807.
Explanation:
The long long
data type in C++ is specifically designed to hold large integers. It is guaranteed to be at least 64 bits, providing a range that includes 10^18.
[[SOURCE 1]]