K & R Exercise 1.5