K & R Exercise 1.4