Write a try-catch statement that calls the Sum function of Exercise 14 and, if an exception is thrown, prints an error message and rethrows the exception to a caller.
Exercise 14
Write a Sum function that returns the sum of its two non-negative int parameters unless the sum would exceed INT_MAX, in which case it throws an exception. (Caution: You cannot check for overflow after adding the numbers. On most machines, integer overflow results in a change of sign, but you should not write code that depends on this fact.)
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.