C Programming Language (2nd Edition) and over one million other books are available for Amazon Kindle. Learn more



or
Sign in to turn on 1-Click ordering
Sell Us Your Item
For a $24.05 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Start reading C Programming Language (2nd Edition) on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.
Sorry, this item is not available in
Image not available for
Color:
Image not available

To view this video download Flash Player

 

C Programming Language (2nd Edition) [Paperback]

Brian W. Kernighan , Dennis M. Ritchie
4.7 out of 5 stars  See all reviews (365 customer reviews)

Buy New
$52.76 & FREE Shipping. Details
Rent
$20.00
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.
In Stock.
Want it tomorrow, May 24? Choose One-Day Shipping at checkout. Details
Free Two-Day Shipping for College Students with Amazon Student

Formats

Amazon Price New from Used from
Kindle Edition $29.69  
Hardcover --  
Paperback $52.76  
Shop the new tech.book(store)
New! Introducing the tech.book(store), a hub for Software Developers and Architects, Networking Administrators, TPMs, and other technology professionals to find highly-rated and highly-relevant career resources. Shop books on programming and big data, or read this week's blog posts by authors and thought-leaders in the tech industry. > Shop now

Book Description

April 1, 1988 0131103628 978-0131103627 2

The authors present the complete guide to ANSI standard C language programming. Written by the developers of C, this new version helps readers keep up with the finalized ANSI standard for C while showing how to take advantage of C's rich set of operators, economy of expression, improved control flow, and data structures. The 2/E has been completely rewritten with additional examples and problem sets to clarify the implementation of difficult language constructs. For years, C programmers have let K&R guide them to building well-structured and efficient programs. Now this same help is available to those working with ANSI compilers. Includes detailed coverage of the C language plus the official C language reference manual for at-a-glance help with syntax notation, declarations, ANSI changes, scope rules, and the list goes on and on.


Frequently Bought Together

C Programming Language (2nd Edition) + The C Answer Book: Solutions to the Exercises in 'The C Programming Language,' Second Edition + Programming in C (3rd Edition)
Price for all three: $127.79

Buy the selected items together


Editorial Reviews

Amazon.com Review

Just about every C programmer I respect learned C from this book. Unlike many of the 1,000 page doorstops stuffed with CD-ROMs that have become popular, this volume is concise and powerful (if somewhat dangerous) -- like C itself. And it was written by Kernighan himself. Need we say more?

From the Publisher

This second editon describes C as defined by the ANSI standard. This book is meant to help the reader learn how to program in C. The book assumes some familiarity with basic programming concepts like variables, assignment statements, loops, and functions. A novice programmer should be able to read along and pick up the language.

Product Details

  • Paperback: 274 pages
  • Publisher: Prentice Hall; 2 edition (April 1, 1988)
  • Language: English
  • ISBN-10: 0131103628
  • ISBN-13: 978-0131103627
  • Product Dimensions: 7 x 0.6 x 9.2 inches
  • Shipping Weight: 1.2 pounds (View shipping rates and policies)
  • Average Customer Review: 4.7 out of 5 stars  See all reviews (365 customer reviews)
  • Amazon Best Sellers Rank: #2,841 in Books (See Top 100 in Books)

More About the Author

Discover books, learn about writers, read author blogs, and more.

Customer Reviews

Most Helpful Customer Reviews
271 of 274 people found the following review helpful
5.0 out of 5 stars A high-intensity tutorial and a great reference March 13, 2000
Format:Paperback
This book (widely known as K&R, after the authors' initials) has for over twenty years been the best way to learn C. When I got this book in 1980, I had access to a Unix system and worked through much of the tutorial material in it. On the way I learnt a great deal, not just about C, but about good programming style, code reuse, the value of clear comments--in short, I was introduced to the skill set of an experienced computer professional.

The book was a trendsetter in several ways. For example, the very first exercise given is to print "hello, world"; this is now seen as the first exercise in innumerable other, more recent books, many of which may not realize that they are borrowing from K&R. The rest of chapter 1 (there's a chapter 0, an introduction; another geek-cool change which has been widely copied) is a tutorial that takes you through assignment statements, data types, if/else, for, while, printf, function definitions, arrays, and variable scoping, in less than 30 pages. If you work your way through the embedded exercises you'll have written utilities to strip tabs, reverse input by lines, strip trailing whitespace from input, and several others. This is much more challenging than most tutorials, but the effect on the student is that you feel you are being treated as an equal. The book doesn't talk down to you; it gives you accurate and concise answers. It's written for programmers, in other words.

The next few chapters go back over the elements of C in more detail, and should also be treated as a tutorial. Going through this material religiously will be far more valuable than any college class could possibly be.

There is a reference section at the back, which is good to have. But the real value of this book is in the tutorial approach: it is a rare pleasure in the computing field to find a book that is simultaneously clear, stimulating and informative.

Was this review helpful to you?
128 of 136 people found the following review helpful
5.0 out of 5 stars The best programming book I ever bought. July 12, 2000
By Uri Raz
Format:Paperback
I've first bought this book when I started my academic studies, after 5 years of work with Fortran 77 & three years of work with Pascal.

This small book (270 pages, including the index) served me well through my degree, and I still keep the dog-eared, yellowing, aged book with me at work.

The book focuses on the language itself - this is no hands-on book (no explanations on how to use this compiler or that debugger, though it is a little biased toward Unix) - in a clear, concise, and thorough way covering all of the language and it's standard libraries.

I especially liked the excercises (the solutions come in a seperate volume) and the C source code examples of how some of the library routines are (or may be) implemented.

With this book I had no problem understanding the more difficult subjects (e.g. many people have problems with pointers, and this book makes the subject easy to understand) and avoiding pitfalls.

I've read it in a week, and keeping it in hand's reach smoothly started programming in C.

The only drawback I see in this book is it's price, it's a small book which sells *very* well, and I'd expect it's price to be lower. This book is *not* for people who study C as their first programming language (those would be better served with a pair of books - a first course in programming and compiler guide).
Comment | 
Was this review helpful to you?
104 of 112 people found the following review helpful
5.0 out of 5 stars The most elegant programming book I have ever read November 8, 1997
Format:Paperback
This book is not "for Dummies". It assumes that you already have some knowledge of structured programming languages (i.e. Pascal). For example, this book spends four well-written pages explaining everything you need to know about functions. If you don't know what a function is, this will clearly not be enough. However, if you do know about functions, this book will not drone on and on for an entire chapter or two on the subject like some of the foot-crunching tomes the size of an encyclopdia.

The book is expensive ($40) for its size (approx. 250pgs.), but it is worth every penny. To quote the authors: "C is not a big language, and it is not served well by a big book."

As a bonus, almost anything you need to know about C can be found in seconds using the excellent index. It should be noted that this is a language reference and will NOT tell you how to use your editing environment or compiler.

In summary, intermediate or advanced programmers should be able to learn C with reasonable proficiency in a short amount of time.

Comment | 
Was this review helpful to you?
Most Recent Customer Reviews
5.0 out of 5 stars Must read.
Simple and concise.

There's no need to buy a 500+ page book to learn C. C is a small, simple language, and this is the perfect amount of book for it. Read more
Published 1 day ago by Alexander T. Esplin
5.0 out of 5 stars Best book for learning C
Even if you already know the language, it is the best book to get reference on a specific subjet. Great.
Published 12 days ago by rany
1.0 out of 5 stars K&R is a piece of crap
As a teaching tool, this book is close to useless: you learn programming by doing programming. The examples are few and on top of it, abstract. Read more
Published 17 days ago by blacklight
5.0 out of 5 stars Simply the most important book in the history of computer programming.
Some things never change. The K&R is still the only book a person needs to read in order to fully understand computer programming.
Published 22 days ago by John Murphy
5.0 out of 5 stars Classic
Still relevant after all these years. Highly recommended as a core reference for C, C++ and oop in general.

Just make sure you don't lose it like I did!
Published 28 days ago by Happy
5.0 out of 5 stars No Annoying Images, Graphics, or Sidenotes
This is a great book. All the examples are of actual, working programs and it doesn't come with distracting pictures, activities, etc. Read more
Published 1 month ago by Michael Jones
4.0 out of 5 stars Objetivada ao tratar do assunto.
Recomendo, satisfez minhas expectativas, alias foi escrito pelos papas no assunto, Linguagem de programaçăo C. Read more
Published 1 month ago by Francisco
5.0 out of 5 stars Good book
this is almost a must-have book for interviews if you are in the CSE domain -
tags: computers textbook
interview
Published 2 months ago by chetan
5.0 out of 5 stars The book is good
It has lots of words and things. Also it talks about things like computers. This book is recommended if you just want to chill out and have a good time. Read more
Published 2 months ago by J. Sherrill
5.0 out of 5 stars The best
Along with the Kochan and King books, this is my favorite C book (why all the K's?).

It's pretty short, a real virtue. Read more
Published 2 months ago by Daniel A Goldman
Search Customer Reviews
Only search this product's reviews

What Other Items Do Customers Buy After Viewing This Item?


Forums

Search Customer Discussions
Search all Amazon discussions

Topic From this Discussion
Where's the Kindle edition?
yes even I agree. Currently InformIT is bringing up digital copy of this classic. So if folks out there are eager to buy a digital version head out to informit website and you can pre-order this classisc for some good discount!!!
But having said that, Kindle is kindle and we need to have this... Read more
Oct 19, 2012 by Manoj Ramesh Joshi |  See all 2 posts
Ritchie passed away today Be the first to reply
Welcome to the The C Programming Language forum
How much has the C language changed since this book was published? I've heard so many great things about it, but have changes to C made this book obsolete?
Jan 17, 2006 by gotsomeideas |  See all 3 posts
Start a new discussion
Topic:
First post:
Prompts for sign-in
 




So You'd Like to...



Look for Similar Items by Category