Objective
Implement a function that says whether a + b would leave the range of an int, and says it without ever computing a + b.
Steps
$ add_overflows(2, 3)
0
$ add_overflows(INT_MAX, 1)
1
$ add_overflows(INT_MAX, INT_MIN)
0
$ add_overflows(INT_MIN, -1)
1
$ add_overflows(INT_MIN, 0)
0
Expected files
Allowed functions
None. Write every helper yourself.
Allowed headers

Objective
Implement a function that says whether a + b would leave the range of an int, and says it without ever computing a + b.
Steps
$ add_overflows(2, 3)
0
$ add_overflows(INT_MAX, 1)
1
$ add_overflows(INT_MAX, INT_MIN)
0
$ add_overflows(INT_MIN, -1)
1
$ add_overflows(INT_MIN, 0)
0
Expected files
Allowed functions
None. Write every helper yourself.
Allowed headers

Tests
Run the tests to grade your code