Solutions to The C Programming Language exercises