The C Programming Language. 2nd Edition by Brian Kernighan and Dennis Ritchie These are the exercise from this book. Chapter 1