Answers to exercises for 'The C Programming Language' by Kernighan and Ritchie