You are here

Solutions to Exercises in Chapter 16

10 February, 2015 - 15:31

Solution to Exercise 16.2.1

Answers:

  1. 12
  2. 6
  3. 1
  4. It's 3. Surprised, but it works. The middle plus sign is addition and the rest are unary positive or unary negative.
  5. Error, no operand between addition and division.

Solutions to Practice 16: String Class, Unary Positive and Negative

Solution to Exercise 16.3.1

Answers:

  1. 15
  2. 4
  3. 1
  4. Error, no operand between subtraction and multiplication.