mirror of
https://github.com/Manoj-HV30/dsa-competitive-programming.git
synced 2026-05-16 19:35:22 +00:00
599f6e5b3e
Updated notes on integer limit macros and included modern alternatives.
14 lines
285 B
Markdown
14 lines
285 B
Markdown
INT_MAX, INT_MIN are called integer limit macros or more generally type limit constants.(compile-time constants)
|
|
defined in #include climits
|
|
|
|
Modern Alternative:
|
|
|
|
#include limits
|
|
|
|
numeric_limits<int>::max();
|
|
numeric_limits<int>::min();
|
|
|
|
int maxInt = std::numeric_limits<int>::max();
|
|
|
|
|