Exercise 1-4 K&R2