some exercises and examples from The C Programming Language