
Available under Creative Commons-ShareAlike 4.0 International License.
Solution to Exercise 14.1.1
Answers:
- true
- y is: 18 and z is: 19
- x is: 8.77 and y is: 8 Note: truncation of 8.77 to 8 upon demotion.
- Not ok. Error, the item incremented must have Lvalue attributes, usually a variable. It is an expression not a variable.
Solutions to Practice 1.: Test Before Loops
Solution to Exercise 14.3.1
Answers:
- true
- y is: 27 and z is: 26
- x is: 3.44 and y is: 3 Note: truncation of 3.44 to 3 upon demotion to integer data type.
- Not ok. Error, the item incremented must have Lvalue attributes, usually a variable. Because of the parentheses, it is an expression not a variable.
- 2582 reads