1 2 3 4 5 6 7 8 9 10 11
#include <limits> #include <iostream> #include <cstdlib> int main() { using namespace std; cout << numeric_limits<int>::min() << "\n"; cout << abs(numeric_limits<int>::min()) << "\n"; return EXIT_SUCCESS; }
1 2
-2147483648 -2147483648