It says on wikipedia and in Stroustrup’s FAQ that type long long is at least as long as an int and has no fewer than 64 bits. I have been looking at the C++11 standard §3.9.1 Fundamental Types section and I cannot find any reference to 64 bits. All I can find is that it is at least as long at long int, which is at least as long as int. The standard lists long long as a standard integer type, as opposed to an extended one, so I am wondering whether this assertion that long long holds at least 64 bits is true. And if it is, where is it stated?
Please note that I am talking about C++11 standard long long only.
It says on wikipedia and in Stroustrup’s FAQ that type long long is at
Share
The C++ standard references the C standard for this, see [c.limits].
LLONG_MAXis defined in<climits>with the same meaning as C’s<limits.h>‘sLLONG_MAX. And this is what C has to say:A signed type that must be capable of representing the value
9223372036854775807requires 64 bits or more.