Buy new:
$53.60
FREE delivery Thursday, May 2
Ships from: Amazon.com
Sold by: Amazon.com
List Price: $67.00 Details

The List Price is the suggested retail price of a new product as provided by a manufacturer, supplier, or seller. Except for books, Amazon will display a List Price if the product was purchased by customers on Amazon or offered by other retailers at or above the List Price in at least the past 90 days. List prices may not necessarily reflect the product's prevailing market price.
Learn more
Save: $13.40 (20%)
FREE Returns
FREE delivery Thursday, May 2
Or fastest delivery Wednesday, May 1. Order within 9 hrs 34 mins
In Stock
$$53.60 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$53.60
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Ships from
Amazon.com
Ships from
Amazon.com
Sold by
Amazon.com
Sold by
Amazon.com
Returns
Eligible for Return, Refund or Replacement within 30 days of receipt
Eligible for Return, Refund or Replacement within 30 days of receipt
This item can be returned in its original condition for a full refund or replacement within 30 days of receipt.
Returns
Eligible for Return, Refund or Replacement within 30 days of receipt
This item can be returned in its original condition for a full refund or replacement within 30 days of receipt.
Payment
Secure transaction
Your transaction is secure
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
Payment
Secure transaction
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
Get Fast, Free Shipping with Amazon Prime
FREE delivery Thursday, May 2 on orders shipped by Amazon over $35
Or fastest delivery Wednesday, May 1. Order within 9 hrs 34 mins
Used: Acceptable | Details
Sold by TEXbooks Plus
Condition: Used: Acceptable
Access codes and supplements are not guaranteed with used items.
Loading your book clubs
There was a problem loading your book clubs. Please try again.
Not in a club? Learn more
Amazon book clubs early access

Join or create book clubs

Choose books together

Track your books
Bring your club to Amazon Book Clubs, start a new book club and invite your friends to join, or find a club that’s right for you for free.
Kindle app logo image

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.

Read instantly on your browser with Kindle for Web.

Using your mobile phone camera - scan the code below and download the Kindle app.

QR code to download the Kindle App

Follow the author

Something went wrong. Please try your request again later.

C Programming Language, 2nd Edition 2nd Edition


{"desktop_buybox_group_1":[{"displayPrice":"$53.60","priceAmount":53.60,"currencySymbol":"$","integerValue":"53","decimalSeparator":".","fractionalValue":"60","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"qj%2FsWA9RjDZMRqtrKd7QAsyuS1HE7q7MLAisngMocf%2FfIMX1opUCRUoQl7xd9OllYrjIHB2ZK3wUwLUv%2FJBlK3YUvqRWz5%2FXfyDsXMnXrPRCmuOz0zqmQT7YBJd7E7MM%2FgZ9spuqovA%3D","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":0}, {"displayPrice":"$32.26","priceAmount":32.26,"currencySymbol":"$","integerValue":"32","decimalSeparator":".","fractionalValue":"26","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"qj%2FsWA9RjDZMRqtrKd7QAsyuS1HE7q7M6Pw3JeXI6sG5md2W%2FX7ame4DXbzltaLEL6IENPr5G7EzJ89CNA6lpKs2%2BE6ho229wKlDfSc%2FphjoIs05H8pjEoaHFApz7LHYN8DOOywRqw6njvmYzr0OjNJcj6K4DxXMrJ4xtWbQMQyAHzXwyELRiV%2BB%2B1aSzJNc","locale":"en-US","buyingOptionType":"USED","aapiBuyingOptionIndex":1}]}

Purchase options and add-ons

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.


Amazon First Reads | Editors' picks at exclusive prices

Frequently bought together

$53.60
Get it as soon as Thursday, May 2
In Stock
Ships from and sold by Amazon.com.
+
$26.86
Get it as soon as Thursday, May 2
In Stock
Ships from and sold by Amazon.com.
+
$58.15
Get it as soon as Thursday, May 2
In Stock
Ships from and sold by Amazon.com.
Total price:
To see our price, add these items to your cart.
Details
Added to Cart
Choose items to buy together.
Popular Highlights in this book

From the Publisher

C Programming Language on stack of stack of books

One of the Most Recommended Programming Books of All Time

"It is hard for me to describe just how profoundly that book affected my career. I remember reading it by a campfire in my back yard—my original still smells of smoke—puzzling over the code, and standing to cheer for the concepts. The simple elegance of the writing; the pragmatic outlook of the authors; the sheer beauty of the language thrilled me as no language had before—or has since."

Robert "Uncle Bob" Martin, author of Clean Code.

"K&R is one of my favorite books. The style of the tutorial chapters is so deceptively light and simple and the manual so crisp. Much of C's reputation of simplicity comes from the clarity and great little examples from this book. My 1978 copy has lost its cover and my K&R2 is somewhat dog eared. Above all, K&R is a useful book."

Bjarne Stroustrup, designer and original implementer of C++, and author of The C++ Programming Language

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

  • Publisher ‏ : ‎ Pearson; 2nd edition (March 22, 1988)
  • Language ‏ : ‎ English
  • Paperback ‏ : ‎ 272 pages
  • ISBN-10 ‏ : ‎ 0131103628
  • ISBN-13 ‏ : ‎ 978-0131103627
  • Item Weight ‏ : ‎ 1.14 pounds
  • Dimensions ‏ : ‎ 7.1 x 0.6 x 9.2 inches
  • Customer Reviews:

About the author

Follow authors to get new release updates, plus improved recommendations.
Brian W. Kernighan
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

Discover more of the author’s books, see similar authors, read author blogs and more

Customer reviews

4.7 out of 5 stars
4.7 out of 5
4,017 global ratings
Worth The Money
4 Stars
Worth The Money
This book is well printed, has a complete Table of Contents, an appendix, and an index. This is my first and only recommendation for learning C ESPECIALLY as a beginner. If you’re coming from Python having good syntax might throw you off but once you adjust you will see why everyone hates writing in Python.
Thank you for your feedback
Sorry, there was an error
Sorry we couldn't load the review

Top reviews from the United States

Reviewed in the United States on July 12, 2009
In 1988, The C Programming Language, 2nd Edition (affectionately referred to as K&R2) was first printed. Despite the passing of so many years, C's syntax and semantics have remained fairly stable. It is then fitting that K&R2 remains the de facto manual and reference for helping programmers get acquainted with the C programming language. Dennis M. Ritchie, one of the co-authors, is the original designer of C and also helped design the Unix operating system in the '60s. Brian Kernighan also helped with the design of Unix, AWK, and is noted for creating other well-known Unix programs.

Not only are the authors well qualified, but they communicate very effectively in concise and clear language. The authors do not pander or condescend to readers. They make no claims to teach C in only one day; they actually expect readers to have a basic grasp on various programming concepts. The authors show an earnest desire to help programmers learn the language. The code examples provided are very helpful and exceptionally elegantly coded. As other reviewers have noted, they help instill good coding habits from the start.

K&R2 provides a helpful introduction to programmers, which gives an overview of what the C programming language is (and is not). The introduction explains C's typing system and basic features. The meat of the book is well organized into chapters that sequentially build upon previous chapters. Chapter 5, "Pointers and Arrays," for example, does a great job at elucidating a difficult computer science concept. A lot of people are well aware of nasty bugs deriving from using pointers and arrays, but the authors explain pointers and arrays in a very clear way, which draws the important distinctions between them.

After the main tutorial chapters, the appendix follows in an amazingly compact, yet thorough reference, which includes a C grammar, overview of the standard libraries, and more. Oftentimes, this reference is the most convenient and concise source for information (note that 
the C Standard  is *the* authoritative source on the C specification). For example, the section covering the "*printf" and "*scanf" conversion specifiers is extremely helpful and much easier to digest than most man pages.

For such a relatively small text, it's amazing how thorough it is. Although it's no substitute for having a copy of the ISO C Standard at hand, it's still an indispensable reference to have. Also, since C99 has yet to be fully implemented on many common implementations, developers still look to the ANSI C standard for ensuring their code is as portable as possible.

I feel K&R2 is the best reference for learning C; it has been considered canon for all these years for a reason.
16 people found this helpful
Report
Reviewed in the United States on December 17, 2013
I'm not new to programming; in fact I've been doing it professionally for the past decade. Although I've played around in quite a few different languages, most of my work over the last 6 years has been in .NET (C# mainly). I have always had an interest in C because I love its simplicity. Also, it's a language which brings one closer to the machine, stripping away many of the abstractions that higher level languages provide. Higher level languages (such as Java, C#, Python, etc.) are massive and powerful with HUGE frameworks, but I'm attracted to simple things.

This book is a feisty little devil! I had heard of this book before diving in (it is a classic), but its size and table of contents lead me to believe I would breeze right through it. Wrong! Picking up the syntax wasn't too difficult and I have a fairly good handle on more advanced concepts like pointers already, but this book is absolutely packed with exercises and many of them are quite challenging!

Here's one:
"Write a program to check a C program for syntax errors like unbalanced parenthesis, brackets and braces. Don't forget about quotes, both single and double, escape sequences, and comments."

This is a chapter 1 exercise! Chapter 1 is just a tutorial introduction chapter and this is one 1 of 24 exercises in this chapter! No wonder it takes people years to work through this tiny book. I'm only about halfway through as I write this review.

This book is the perfect blend of reference material, practical knowledge and challenging exercises. There is absolutely no fluff and not a single word is wasted. I grow tired of pouring through 1,000+ page tomes. The appendices are also very well structured and extremely helpful.

Although I do virtually no C coding professionally, I can say for certain that this book has leveled up my skill-set. Working through these exercises has helped me with logical thinking and having a better understanding of coding closer to the machine has improved me as a developer overall. I'm one who believes that this book is great for all programmers, even if you never write a line of C after working through this book. I'm really loving the C language!

Whether you are a beginner or experienced it's worth having this book. Though this will be quite tough for total beginners, I say it's still work picking up and pairing it with a more beginner-friendly book. Unfortunately I cannot recommend such a book at this time because this is the only C book I've worked through.
148 people found this helpful
Report
Reviewed in the United States on October 16, 2012
This book is literally the holy grail of programming books. It never assumes you are stupid or talks down to you. It is a very small book compared to the tomes you see sitting on store shelves for most programming languages but this is because it manages to convey the information in the quickest possible manner. It has plenty of code examples for you but it doesn't ever hand you the solution to the problems it challenges you with.

If you make it through this book and follow along with all the exercises and complete all the challenges then you will have a working knowledge of the C language. You might not be the greatest programmer in the world when you finish but you will have the most solid foundation possible to build upon. At first a lot of the concepts might not make sense and you may find yourself reading some chapters multiple times, I know I did. The book is challenging but like most things worth learning in life programming is not easy. Programming is a long journey and one where you never really stop learning. Everything you do in this book make seem pointless and you may think that you are doing simple tasks the long way because in some ways you are but no one ever started programming by writing a AAA application on the first try.

Don't buy into books that promise to teach you how to build hardcore games or applications right off the bat. You need a foundation for that knowledge and this is where you can get it. Don't jump in the deep end of the pool before you learn to swim or you may regret that decision later.

Having been programming for years this is one of the few books that I continue to carry with me and it has survived every summer cleaning of my bookshelf. It truly is an invaluable resource. I suggest you pick it up if you have any interest in programming.
10 people found this helpful
Report

Top reviews from other countries

Fernanda
5.0 out of 5 stars C
Reviewed in Brazil on June 24, 2023
Muito bom. Excelente e importante para quem gosta de programação.
One person found this helpful
Report
Guillermo Sanchez
5.0 out of 5 stars Indispensable
Reviewed in Mexico on August 18, 2023
Fuente obligada de información para interesados en programación robusta y eficiente.
David Jones
5.0 out of 5 stars Good revision exercise
Reviewed in the United Kingdom on March 16, 2024
Covers C & ANSI C.
Lokesh Bisht
5.0 out of 5 stars Content is great. Book quality is cheap
Reviewed in Germany on December 30, 2023
Quality of book is not the best. Content is nice
One person found this helpful
Report
Marco
5.0 out of 5 stars La Bibbia del C
Reviewed in Italy on December 15, 2023
Recentemente ho preso la decisione di sviluppare un nuovo videogioco ed ho pensato di farlo con un linguaggio di programmazione più a basso livello rispetto a quelli da me utilizzati solitamente.
Beh, sarò strano io... ma programmare in C da una sensazione di libertà espressiva che mi mancava da molto tempo.

Detto questo, che a voi fregherà relativamente, veniamo al libro: semplicemente la Bibbia di questo linguaggio storico, non deve mancare nella libreria di un Software Engineer.
One person found this helpful
Report