The C Programming Language
Brian Kernighan, Dennis Ritchie
124 people recommended it in 48 threads, 2008–2026.
24 commenters pushed back on it — worth reading the threads.
What people on Hacker News said
It showed me that a technical book can be concise, well written and enjoyable to read.
I've been working through K&R C and have been doing exactly what the article says--read the code, understand how it works, then write it. When it breaks, go back and learn why.
IMHO, this lesson is its notion of programming style: terse, small, efficient. It permeates the whole book and C/Unix design but the book is not explicitly about it.
If I knew a kid who was "interested in computers", but there was no one around to give them a helping hand I'd definitely give them a copy of CODE and The C Programming Language.
But K&R’s book explained the language, how it worked, and how to program — in the most primitively satisfying way.
K&R is still the best book on C. Short, simple and accurate.
And on Amazon
Required reading for all aspiring devs
I purchased this book 20 years ago for about $10 and didn't realize it was actually an investment. 900% appreciation is pretty good lol. As a C++ dev at the time, this book was instrumental in helping me get a better understanding of what was going on at a level below where I was used to operating. The deeply technical yet easy to follow flow with all of the examples made it a very pleasant read and review handbook that still sits on my desk today. I think it is a must read for all aspiring developers.
DteK · verified purchase · 5/5
Pre-ANSI K&R arrived signed!
Ordered a pre-ANSI edition of The C Programming Language as a collectible. It arrived in good shape, and I was pleasantly surprised to find what appears to be Brian Kernighan's signature on the inside title page!
P. A. · verified purchase · 5/5
This is where Hello, world! come from
Often imitated but, this is the genuine article. And, as of this writing you can still compile "K&R" C. Read this and you know C. You only need to know what's in the libraries, compile and link and the stuff works. It's the language of the Linux, Android, MacOS systems. Who knows what the hell Microsoft Windows is written in but, probably C. In fact you'll know a heck of lot more than folks who've only programmed in Python and Ruby know about the machine. In fact you won't have any trouble with Aduino's development tools. …
Kerry · verified purchase · 5/5
Where it comes up
- Ask HN: Best book to learn C in 2022? 2022 · 16 recommendations
- Ask HN: What is the best programming book you've read? 2021 · 6 recommendations
- Ask HN: What are the most fundamental books on computer science? 2019 · 6 recommendations
- What are must read books for entry level C programmer? 2017 · 6 recommendations
- Ask HN: I use and love Python. What's the best book to learn C ? 2010 · 6 recommendations
- Ask HN: The book that did it for you in math and/or CS? 2022 · 5 recommendations
- What is the single most influential book every programmer should read? 2011 · 5 recommendations
- Ask HN: Top 10 Timeless Software Books That ChangedLife as Software Engineer? 2023 · 4 recommendations
- Learn C Programming with Open-Source Books 2017 · 4 recommendations
- What is the single most influential book every programmer should read? 2011 · 4 recommendations
- The Book That Every Programmer Should Read 2011 · 4 recommendations
- Ask HN: What are the best short tech/engineering books you have read? 2022 · 3 recommendations
- Ask HN: What book changed your life? 2022 · 3 recommendations
- Ask HN: What's the best textbook you've read? 2018 · 3 recommendations
- The most mentioned books on Stack Overflow 2017 · 3 recommendations
- Which is your favorite 70-80s computer book? 2008 · 3 recommendations
- Ask HN: What are the most eye-opening textbooks you have ever read? 2023 · 2 recommendations
- Ask HN: Do you recall any book or course that made a topic finally click? 2022 · 2 recommendations
- Ask HN: Which books do you consider real gems in your field of work/study? 2022 · 2 recommendations
- Show HN: 40k HN comments mentioning books, extracted using deep learning 2021 · 2 recommendations
