Solutions to some exercises in TCPL (K & R)