Question: 7. Assuming the expression are evaluated when executing a 32-bit program on a machine that use twos- complement arithmetic, fill in the following table describing
7. Assuming the expression are evaluated when executing a 32-bit program on a machine that use twos- complement arithmetic, fill in the following table describing the effect of casting and relational operations, in the style of ID=0. (Page 76). 8 points (1 point for each blank) with blue color
| ID | Expression | Type (signed or unsigned) | Evaluation (True or False) |
| 0 | -1 < 0U |
|
|
| 1 | (unsigned) -1 > -3 |
|
|
| 2 | 2147483647U < -2147483647-1 |
|
|
| 3 | 2147483647 > (int) 2147483648U |
|
|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
