You are here

Exercises

10 February, 2015 - 10:49

Exercise 14.1.1

Evaluate the following items using increment or decrement:

  1. True or false: x = x +1 and x+=1 and x++ all accomplish increment?
  2. Given: int y = 19; and int z; what values will y and z have after: z = y ;
  3. Given: double x = 7.77; and int y; what values will x and y have after: y = ++x;
  4. Is this ok? Why or why not? 6 * ++(age -3)