Overflow while performing addition in one way and getting correct output in other way but why? [duplicate]
Original close reason(s) were not resolved
C++-Occuring overflow while performing additon in one way and getting correct output in otherway but why?
I am doing a code and in that there is a line where a,b,c,d are integers,