I am trying to write a function which basically detects if an overflow happened between 2 integers sum and difference and returns 1 or 0 depending upon if the overflow happened or not. The thing that is really confusing me as I am new to overflow concept is:
How Am I supposed to check if the overflow is happening in the sum or difference of 2 integers??