You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: solutions/chapter-02.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -140,7 +140,7 @@
140
140
1. If the two unsigned number added and leftmost digit of the sum will be 1 this means an overflow occured. Because unsigned numbers are positive and leftmost digit is 0.
141
141
---
142
142
24. Create two 16-bit unsigned integers such that their sum causes an overflow.
143
-
1.0111 1111 1111 1111 + 0000 0000 0000 0001
143
+
1.1111 1111 1111 1111 + 0000 0000 0000 0001
144
144
---
145
145
25. Why does the sum of a negative 2’s complement number and a positive 2’s complement number never generate an overflow?
146
146
1. When adding a negative and a positive 2's complement number, overflow is not possible because the result will always be within the range of representable values for the given bit width.
0 commit comments