You are here

Exercises

10 February, 2015 - 11:41

Exercise 14.3.1

Evaluate the following items using increment or decrement:

  1. True or false: x = x-l; and x -= l; and x-; and -x; all accomplish decrement.
  2. Given: int y = 26; and int z; what values will y and z have after: z = y++;
  3. Given: double x = 4.44; and int y; what values will x and y have after: y = -x;
  4. As an expression: l0 / ++(money * 4) Is this ok? Why or why not?