Unsigned Long Long Int Range C++ Code Example
Example 1: range of long long in c++
Long Data Type Size (in bytes) Range long int 4 -2,147,483,648 to 2,147,483,647 unsigned long int 4 0 to 4,294,967,295 long long int 8 -(2^63) to (2^63)-1 unsigned long long int 8 0 to 18,446,744,073,709,551,615
Example 2: c++ get maximum value unsigned int
// C #include <limits.h> unsigned int max_unsigned_int_size = UINT_MAX; // C++ #include <limits> unsigned int max_unsigned_int_size = std::numeric_limits<unsigned int>::max();
Comments
Post a Comment