Computer Science, asked by saadfurqhan, 1 year ago


If we are adding two non-negative numbers, which condition represents an overflow?
The result is negative
The result is 0
Depends on the numbers
None of the above

Answers

Answered by drishat0909
1
0+0 ????? will it be a right answer? hope it's right....

drishat0909: is it right}?
Answered by phillipinestest
0

Answer: None of the above  

Correct Answer: “If the result is positive”  

If adding 2 positive numbers returns a negative result, the resulting sum is considered as overflowed also if the addition of 2 negative numbers returns a positive result, the resulting sum is considered as overflowed. Otherwise, the addition is not overflowed.  

Overflow rule says if 2 numbers having the "same sign" (both "positive" or both "negative") are summed, then "overflow" occurs if only the result has an opposite sign.

Similar questions