can sombody tell me why the expression of the one i circled its not y-3? 3. 118
ID: 2248279 • Letter: C
Question
can sombody tell me why the expression of the one i circled its not y-3? 3. 118 Points ] Assume we are running code on d 6 using two's complement arithmetic for signed integers. Also assume that TMax is the maximum-ihteger. TMin is the minimum integer. Fill in the empty boxes in the table below. The following definitions are used in the table: int y int x 53 Note: For the empty boxes in the first column (Expression) you MUST USE either x or y along with any other constants, eg. x+17. In the column labeled "Overflow", you should indicate Yes or No whether overflow occurred Expression Decimal Representation Hex Representation Overflow? -29 0x23 No No -32 Yes 0x01 0x3d Yes x +TMax Ur Yes TMin+y 2 OctExplanation / Answer
It's because of overflow condition...,
If y-3 then that gives -32 but the over flag is not on.., because the addition is sum of two negative numbers
Where when we are consider
X+2 gives 31+2 i.es actually 33 but due to max limit is shows as 1 and the overflow flag will be raise..,
So that it's not y-3
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.