Exercise 1-9 K&R2