K & R Exercise 1.3