Sahin Boydas
Random theme
Select theme
The C Programming Language cover

The C Programming Language: K&R, the Book Paul Graham Holds Up as the Ideal

by Brian W. Kernighan and Dennis M. Ritchie · Prentice Hall, 1978

By Sahin Boydas✓ Updated December 2026On 1 book list

The C Programming Language was written by Brian Kernighan and Dennis Ritchie at Bell Labs. Ritchie designed C. The first edition came out in 1978, and the second, updated for ANSI C, in 1988. Programmers call it K&R after the authors' initials.

The book opens with a tutorial that teaches the language through small, complete programs, starting with one that prints hello, world. That example spread to nearly every programming book since. The second half is a precise reference manual. The whole thing is under 300 pages.

C still underlies operating systems, databases and language runtimes, so the book keeps its readers. Paul Graham cites it twice in his essays, once as a model for how a language's book should be written and once as basic equipment for anyone learning to hack.

Who Recommends The C Programming Language

Paul Graham Book Recommendations

“The book should be thin, well-written, and full of good examples. K&R is the ideal here.”

Paul Graham, Y Combinator cofounder, essayist. Essay "Being Popular", 2001 ↗

Paul Graham, Y Combinator cofounder, essayist. Essay "How to Start a Startup", 2005 ↗

In "Being Popular" he says every programming language needs a thin, well-written book, and names K&R as the model. In "How to Start a Startup" a copy of K&R is one of three things you need to learn to hack.

How Tech People Read It

Paul Graham

In Being Popular, Graham argues that a programming language needs a book that is thin, well written and full of good examples, and he names K&R as the ideal. In How to Start a Startup he lists a copy of it among the few things needed to learn to hack. For him it is the standard by which other technical books are judged.

Engineers learning systems programming

Engineers who work in higher-level languages read K&R to understand memory, pointers and what the machine actually does. Its exercises are short and demanding. Working through them teaches the model that Unix, Linux and many runtimes were built on.

Technical writers and founders who write docs

Anyone writing documentation can study how K&R explains a language. Every concept arrives with a working example, and nothing is padded. Developer-tools founders use it as a benchmark for clear onboarding.

The Main Ideas

  • A language is best taught through small, complete programs the reader can run.
  • C gives programmers direct control over memory through pointers.
  • A small language with a standard library can be portable across many machines.
  • A good technical book separates a readable tutorial from a precise reference.
  • Brevity in technical writing is a feature, not a limitation.

Who Should Read It

Read it if you want to learn C properly or see how a technical book should be written. It assumes you have programmed before. Skip it as a first programming book, or if you need modern C; it covers ANSI C from 1989 and says nothing on later standards or on today's security practices.

The Book

Cover of The C Programming Language by Brian W. Kernighan and Dennis M. Ritchie

Book 01 Programming

The C Programming Language

by Brian W. Kernighan and Dennis M. Ritchie

Publisher
Prentice Hall, 1988 (first published 1978)

Why read it

The book by C's designer and a Bell Labs colleague, known as K&R. In under 300 pages it teaches the language through small complete programs, then gives the reference manual. The second edition covers ANSI C. Still the model of a short technical book.

Frequently Asked Questions

Is K&R still good for learning C in 2026?

Yes for the core language, with care. It covers ANSI C, so pair it with a guide to later standards and to safe memory handling.

What does K&R stand for?

Kernighan and Ritchie, the authors. Dennis Ritchie designed C, and Brian Kernighan worked with him at Bell Labs.

Why does Paul Graham recommend The C Programming Language?

In his essay Being Popular he calls K&R the ideal of a thin, well-written language book. In How to Start a Startup he names it as one of the things you need to learn to hack.

Is The C Programming Language good for beginners?

Not for people who have never programmed. It moves fast and expects some experience.

Does the book have errata?

Yes. Brian Kernighan keeps a page for the book with a list of errata, many fixed in recent printings.