+ 1
what is the maximum Integer that can be stored in long long?
2 Réponses
+ 5
Add limits header
#include <limits>
std::cout << std::numeric_limits<long long>::min(); // min value
std::cout << std::numeric_limits<long long>::max(); // max value
You can replace `long long` with other numeric type, including floating point types (float, double, long double) to get similar result with respect to the type.
+ 4
Not sure, but these links below might give you an insight.
https://stackoverflow.com/questions/18971732/what-is-the-difference-between-long-long-long-long-int-and-long-long-i
https://stackoverflow.com/questions/32924398/difference-between-short-long-and-long-long-int-in-c-programming