Answers to "The C Programming Language" exercise