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 $22.87 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 (373 customer reviews)

Buy New
$42.99 & FREE Shipping. Details
Rent
$22.17
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.
In Stock.
Rented by RentU and Fulfilled by Amazon.
Want it Thursday, June 20? 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 $42.99  
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: $115.14

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: 15.5 ounces (View shipping rates and policies)
  • Average Customer Review: 4.7 out of 5 stars  See all reviews (373 customer reviews)
  • Amazon Best Sellers Rank: #2,113 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
272 of 275 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.... Read more ›

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?
106 of 114 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?
26 of 26 people found the following review helpful
5.0 out of 5 stars Condensed Cream-Of-C Soup February 20, 2002
Format:Paperback
About 5 years into my programming career, I was mildly interested in learning C, so I picked up this book. At the time, I was deterred - it was very brief, terse, and confusing, so I put it back down again.

But now, years later, with many more languages under my belt, I find myself again drawn to C. So I picked up this book again (2nd edition), and finally, I see the light! It is a wonderful book, I agree with all the glowing comments people have written about it, BUT! It is a book written by a computer programmer, for other computer programmers, not a book written by a teacher for a beginning student.

C is alive and well, and still in use today - it lives "at the core" of most popular languages. You can see its influence on C++, JavaScript, even Visual Basic. If you are ready for it, reading and working through the examples in this book will provide you with a solid base for understanding an amazing variety of 'newer' programming languages.

You have to work through the examples, though. If you 'just read' this book, you'll comprehend and retain close to '\0' (null) of the information presented. It's only by going through the examples, that you really nail the subject matter. Yeah, I know, some of these examples are tough - but they're also real-life, and typical of routines every programmer writes and uses. I myself sweated blood over exercise 3-3, but hours later when I was done, the satisfaction of comparing my answer favorably to others was worth it. :-)

I have the C For Dummies books 1 and 2, and after going through them, I was still a Visual Basic programmer. ;-D If you already are a computer programmer, and want to obtain serious knowledge in C without wasting your valuable time, learn from this book.

Comment | 
Was this review helpful to you?
Most Recent Customer Reviews
5.0 out of 5 stars Never understood pointers or structs this well
Great content and made for a super easy transition. Thank you kindly for all you're hardwork! I used this to learn native C for Android.
Published 11 hours ago by Jackie Gleason
5.0 out of 5 stars Where to learn the fundamentals
There are a great many books on programming and the C variants in general. The giant books, which are supposed to teach you everything, actually don't do a good job at anything. Read more
Published 6 days ago by Mike Montgomery
3.0 out of 5 stars Not what I expected
I was suprised to find this book is written to teach C programming but does not explain in depth the meaning of all the terms it just throws at you one behind the other. Read more
Published 8 days ago by Jimmy c. Chivers
5.0 out of 5 stars A model programming book
Previously having a fair grasp of C++, I thought I should briefly take a look at programming in pure C. Read more
Published 9 days ago by Yew
4.0 out of 5 stars Good book if you don't know C
This is probably one of the most helpful C books I have come across. I recommend it for anyone learning C or wanting to get better at it
Published 10 days ago by Wanderer
5.0 out of 5 stars Awesome if you're looking for a nice intro to C
Great book, anyone who wants to learn C should get this book. There are books that go into way more depth but this is an essential for anyone who wants to learn C, or anyone who... Read more
Published 15 days ago by Mirza Prasovic
4.0 out of 5 stars Reference
This book is simply a must have for all programmers. Being a chemical engineer myself, i did lot's of programming in Fortran, C, Python and others, and all textbooks regarding C... Read more
Published 21 days ago by Arthur
5.0 out of 5 stars THE Instruction Book for C!
This update on the classic and Best book ever written teaching the C programming language has big shoes to fill, it does this hands down! Read more
Published 25 days ago by Joel Wade
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 27 days 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 1 month ago by rany
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
Start a new discussion
Topic:
First post:
Prompts for sign-in
 




So You'd Like to...



Look for Similar Items by Category


Want to discover more products? You may find many from language programs shopping list.