fork download
  1. #include <climits>
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7. int a = INT_MAX + 1;
  8. unsigned int b = (unsigned int)INT_MAX + 1;
  9. cout << "a: " << a << endl
  10. << "b: " << b << endl;
  11.  
  12. return 0;
  13. }
Success #stdin #stdout 0.02s 2680KB
stdin
Standard input is empty
stdout
a: -2147483648
b: 2147483648