C++ Language/Type/MaxValue/Intmax

From Wikibooks, open books for an open world
Jump to navigation Jump to search

In C, macros like LONG_MIN and LONG_MAX had been defined to be the smallest and largest values that could be represented in that particular type.

C++'s modernization of INT_MAX is std::numeric_limits<int>::max().

Additional information about INT_MAX