The book “The C Programming Language” by Brian Kernighan and Dennis Ritchie is a seminal book on the C and C++ computer languages. The book introduced the C language to the world and is referred to as K&R. It’s not a reference manual but a introduction to the language where the writers explain by example. They present code to solve a problem and write about what the code is doing. As they write,
I will work my way through the sample code and blog about. I’m using the 2nd edition published in 1988. The language and technology has changed since, but that will be part of the blog. The blog entries will all have the tag K+R. The web site won’t accept the ampersand as a character.
Why do it? There’s no one reason, but several. To learn the language. To show others I know something about the C language. To create notes for future reference where, on a blog, I can easily find an answer on something I did previously. To practice my writing of documentation and in general.
I am using Visual C++ 2010 and creating the code as a console application. At some point I will try other compilers, but that’s for another day.