K & R Exercise 1.6