Solutions to K&R, 2nd edition