Y Hacker News Books
Buy on Amazon4.7 out of 5, 182 ratings on Amazon

#15 of 2,629 all-time

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

porpoisely
It showed me that a technical book can be concise, well written and enjoyable to read.

on HN, 2019

jihadjihad
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.

on HN, 2018

diego_moita
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.

on HN, 2011

steauengeglase
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.

on HN, 2011

wilsynet
But K&R’s book explained the language, how it worked, and how to program — in the most primitively satisfying way.

on HN, 2021

bensummers
K&R is still the best book on C. Short, simple and accurate.

on HN, 2010

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