Enjoy fast, free delivery, exclusive deals, and award-winning movies & TV shows.
Buy new:
-14% $60.30
FREE delivery Tuesday, October 7
Ships from: Amazon.com
Sold by: Amazon.com
$60.30 with 14 percent savings
List Price: $69.99
FREE delivery Tuesday, October 7
Or Prime members get FREE delivery Tomorrow, October 3. Order within 6 mins.
In Stock
$$60.30 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$60.30
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Ships from
Amazon.com
Amazon.com
Ships from
Amazon.com
Sold by
Amazon.com
Amazon.com
Sold by
Amazon.com
Returns
FREE 30-day refund/replacement
FREE 30-day refund/replacement
This item can be returned in its original condition for a full refund or replacement within 30 days of receipt.
Read full return policy
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
$41.54
FREE Returns
The book is in acceptable condition, completely readable. It has some writing on the inside. It’s dirty around the edges. The cover is bent with scratches/tears. Few folded corners. Quick shipping. The book is in acceptable condition, completely readable. It has some writing on the inside. It’s dirty around the edges. The cover is bent with scratches/tears. Few folded corners. Quick shipping. See less
FREE delivery Tuesday, October 7
Or Prime members get FREE delivery Sunday, October 5. Order within 2 hrs 36 mins.
Only 1 left in stock - order soon.
$$60.30 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$60.30
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Access codes and supplements are not guaranteed with used items.
Added to

Sorry, there was a problem.

There was an error retrieving your Wish Lists. Please try again.

Sorry, there was a problem.

List unavailable.
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 authors

Something went wrong. Please try your request again later.

C Programming Language, 2nd Edition 2nd Edition

4.7 out of 5 stars 4,291 ratings

{"desktop_buybox_group_1":[{"displayPrice":"$60.30","priceAmount":60.30,"currencySymbol":"$","integerValue":"60","decimalSeparator":".","fractionalValue":"30","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"1OwlFHyEVT%2B2px38axYDN7tknp1j90ORgfTFp%2BKEhWosydckyikNhTBLNdIErXpUpQ5Nq0ZJkjKJklHJcCGjH3NeAmAFReFKj9ujxZAKjP0CwENwrcWfpFl3SCYYdpodrU7XdhaEcjA%3D","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":0}, {"displayPrice":"$41.54","priceAmount":41.54,"currencySymbol":"$","integerValue":"41","decimalSeparator":".","fractionalValue":"54","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"1OwlFHyEVT%2B2px38axYDN7tknp1j90ORcFd2AjDGXR2U52OAaSrY8GzpvYV9e2i0dExN%2BkihEvuwdgFVxpuv%2BLy%2BY7M9gTJW3Qv55aA3cynlQXYti%2Ffpl9dOhJd%2BgNmUKsbJrZJJajQr97T8nM7Mpf9LboyiKvgqEvADYZK9wLlpBMt0%2ByrEKKVSlexNm8eb","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.

Frequently bought together

This item: C Programming Language, 2nd Edition
$60.30
Get it as soon as Tuesday, Oct 7
In Stock
Ships from and sold by Amazon.com.
+
$28.27
Get it as soon as Tuesday, Oct 7
In Stock
Ships from and sold by Amazon.com.
+
$82.69
Get it as soon as Tuesday, Oct 7
Only 1 left in stock - order soon.
Sold by dantoomeysoftware and ships from Amazon Fulfillment.
Total price: $00
To see our price, add these items to your cart.
Details
Added to Cart
Some of these items ship sooner than the others.
Choose items to buy together.

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
  • Publication date ‏ : ‎ March 22, 1988
  • Edition ‏ : ‎ 2nd
  • Language ‏ : ‎ English
  • Print length ‏ : ‎ 272 pages
  • ISBN-10 ‏ : ‎ 0131103628
  • ISBN-13 ‏ : ‎ 978-0131103627
  • Item Weight ‏ : ‎ 1.19 pounds
  • Dimensions ‏ : ‎ 7 x 0.6 x 9.25 inches
  • Best Sellers Rank: #20,911 in Books (See Top 100 in Books)
  • Customer Reviews:
    4.7 out of 5 stars 4,291 ratings

About the authors

Follow authors to get new release updates, plus improved recommendations.

Customer reviews

4.7 out of 5 stars
4,291 global ratings

Customers say

Customers find this C programming book essential for beginners, explaining concepts well and serving as an invaluable tool for learning and using C. The book provides a great overview of the language, written in a clear and concise manner, making it easy to understand. Customers appreciate its reference value, with one noting the comprehensive list of standard library functions in the back, and consider it a timeless classic.

94 customers mention "Programming knowledge"75 positive19 negative

Customers find this book excellent for programming essentials, particularly as a reference and tutorial for beginners and intermediate programmers, with one customer noting it's perfect for entry-level computer science students.

"Great book to learn C, but a little difficult for learner from scratch" Read more

"This book taught me C, but it also taught me how to program better than anything else...." Read more

"Great book to learn C..." Read more

"This book is certainly not for beginners, though not a requirements but at least the reader should have a background on Data Structure in order to..." Read more

76 customers mention "Information quality"69 positive7 negative

Customers find the book provides detailed explanations of C programming concepts and serves as a thorough reference, with one customer noting it grounds readers in the fundamentals.

"...Totally, it's hard to find a small (272 pages), clear and informative book like this one in many C programming language books." Read more

"Very clear and simplifying book. Pleasantly cover the fundamentals of C and functional programming...." Read more

"...The code examples provided are very helpful and exceptionally elegantly coded...." Read more

"...are massive and powerful with HUGE frameworks, but I'm attracted to simple things. This book is a feisty little devil!..." Read more

69 customers mention "Use"68 positive1 negative

Customers find the book invaluable for learning and using C programming, with one customer noting it's a must-have resource.

"It is very useful and easy too understand even for begginers. Also a useful tool for any kind of programmers." Read more

"Useful, but kind of basic." Read more

"Writer known everything in C programming very well , content and example is so good." Read more

"...As other reviewers have noted, they help instill good coding habits from the start...." Read more

58 customers mention "Language description"55 positive3 negative

Customers appreciate the book's language description, finding it provides a great overview and introduction to C, while being concise and precise enough for professionals.

"...qualified, but they communicate very effectively in concise and clear language. The authors do not pander or condescend to readers...." Read more

"...It's quite possibly the best book written to describe a compiler language." Read more

"...created to develop Unix, which is why it retains its stature as a major programming language and why so much system software continues to be written..." Read more

"...and complete all the challenges then you will have a working knowledge of the C language...." Read more

42 customers mention "Ease of use"36 positive6 negative

Customers find the book easy to understand and read, with one customer noting how it clearly describes the code.

"...Straight forward and easy to follow." Read more

"...Totally, it's hard to find a small (272 pages), clear and informative book like this one in many C programming language books." Read more

"...Clear. Must have for beginning C programmers." Read more

"Great book. Easy to follow. Good examples." Read more

35 customers mention "Writing quality"33 positive2 negative

Customers praise the book's concise writing style, with one customer noting that not a single word is wasted.

"...But it won't be easy. The book is clearly written with good examples and exercises. Some of those exercises are pretty hard!..." Read more

"THE canonical text regarding the C programming language. Succinct, to the point, doesn't dive off into much higher-level architecture or wizardry,..." Read more

"...K&R walked me through C in a very concise but thorough way. When I get stuck there's plenty of help to be found online...." Read more

"Well written. Just as long as it needs to be. I still reference this once in a while." Read more

33 customers mention "Reference book"33 positive0 negative

Customers find this book to be a great reference, with one customer highlighting its comprehensive coverage of ANSI-C standards and another noting its extensive library of standard library functions.

"...But if you can get a copy of K&R on hand, it is a great reference...." Read more

"Great reference for those who wish to learn C. Tried and true." Read more

"...a copy of the ISO C Standard at hand, it's still an indispensable reference to have...." Read more

"...This book is the perfect blend of reference material, practical knowledge and challenging exercises...." Read more

31 customers mention "Classic content"31 positive0 negative

Customers appreciate the book's classic content, describing it as timeless and an absolute classic, though some note that the original version was better.

"Classic book! Highly recommend! Must read for any Computer Science student and those interested in a career in programming!..." Read more

"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

"This book is a classic. It's good not only for those interested in C, but also for those working in a C-derived language (PHP, Ruby, Python, etc)...." Read more

"Timeless. A must read for any programmer" Read more

Helpful book
5 out of 5 stars
Helpful book
Bought it for my Systems Programming class.
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
    Format: PaperbackVerified Purchase
    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.
    22 people found this helpful
    Report
  • Reviewed in the United States on December 17, 2013
    Format: PaperbackVerified Purchase
    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.
    162 people found this helpful
    Report
  • Reviewed in the United States on November 2, 2024
    Format: PaperbackVerified Purchase
    This is by far the best C programming book I've ever read.
    I'd like to point out that this is not the no-brain book for beginners with no programming experience at all. You probably need to learn some computer architecture, data structure, algorithms, and other programming experience, even just python.
    The book is very concise, less than 200 pages for the body, but to the point. Neither complicated nor redundant. The examples are really great to illustrate the concept and some necessary programming skills.
    If you need to get to the hardware closer or learn algorithms further, I would like to recommend this book.
    If you are just doing data processing and have no need or interest to algorithm, I wouldn't recommend it. You can start from python or other well encapsulated languages. You can use lots of packages to finish the transaction work.
    11 people found this helpful
    Report
  • Reviewed in the United States on September 25, 2024
    Format: PaperbackVerified Purchase
    Great book for me -- an adult reader with a technical background who is learning C. I'm already familiar with programming (do they call it "coding" nowadays?) and I've done a lot of work in Python. Given that, I found it easy to pick up C from the book.

    You could read this as a beginner as well -- I might get it as a gift for a smart high-school kid. But it won't be easy.

    The book is clearly written with good examples and exercises. Some of those exercises are pretty hard! I skipped most of them, because I have my own projects I want to do instead. But if you're learning C for the first time, I recommend them.
    6 people found this helpful
    Report

Top reviews from other countries

Translate all reviews to English
  • Pietro De Domenico
    5.0 out of 5 stars The original bible of C, but buy it later if you are a beginner.
    Reviewed in Italy on July 18, 2025
    Format: PaperbackVerified Purchase
    The contents of this book are awesome, truly a no time wasted, full and complete manual of C.
    It is clear that the author has great knowledge of the language.

    That the book is great is no news, if you are new to C this is a great starting point and it is highly suggested. It is worth reading even if you are not new to C, but have never had that full coverage that this book would provide.

    However as much as I encourage experienced developers that are new to C to read this, I discourage beginners of the programming world to get it.
    The reason is that this book is more of a manual about C itself rather than a book teaching you how to program.

    The book will teach you how to write a for loop in C, but not what a for loop is, essentially. This is great for experienced developers who don't need to go over the basics for the 40th time, but its a headache for the newbies.

    The book is also very dense; there are no wasted pages here. Every sentence contains knowledge that sometimes you are expected to unpack and understand yourself with any simplification or "spoon feeding".

    Overall a great read, highly recommended.
    Of course the book is old, going all the way back to the standard C89 (whereas the first edition didn't even follow a standard, since back then there wasn't an ISO standard as the book itself explains).

    The good news is that C has such little changes that ANSI C / C89 is a great resource. However you will most likely need to pick up another, more modern and updated book, to catch up with newer standard such as C23.
  • John Smith
    5.0 out of 5 stars Definitely Recommend don't be fooled by age of the book.
    Reviewed in the United Kingdom on January 19, 2018
    Format: PaperbackVerified Purchase
    As someone reading through this the first time it really is amazing despite the fact it was printed years ago my skill has already started increasing. The book shows you really helpful things and tips and tricks that online tutorials miss out (Not surprising since this is from the creators of the language themselves) it is much more detailed and gives you much more useful information and functions than you'll find online, and it also give you understanding and logic behind it and explains why you do some stuff and not others. The Language used in this book is intermediate so it's not dumbed down, meaning It will not teach you programming absolutely from 0% Scratch you need to have some familiarity with the terms and ideas like Variables, Strings, Functions, Compilers all the basic things. Any basic familiarity understanding or experience in other basic languages will do like Python, Java, Lua or whatever. Other than that you should be alright and the book explains the more complex concepts and gradually you'll gain the skills needed to write more complex programs.

    If you want to be an expert I'd definitely recommend this book. This book also gives example programs and tutorials and explains every line it writes, but don't over explain it, as in they come back to some things later on in the book as not to distract from the main thing being taught at the point you are at. This book also tries not to do too much hand holding and gives you exercises to write programs for yourself and lets you figure out some stuff by yourself as it acknowledges that the best way to learn to program is to actually do it rather than just read about it. I haven't ran into any compatibility issues yet meaning that none of the things the books have taught me so far hasn't worked because of the age of the book, all the things I've learnt so far you are still able to apply when coding without running into errors when compiling and running, if you do they're usually minor and can be fixed with a quick google search but its rare when you do. Anyhow this book has a nice clear contents page and references to things like useful libraries and functions you can include when coding, so you can find the section relevant to you if you wish.

    This book also has a lot of content to cover so you'll always be learning new things and getting better, it starts of with a nice tutorial introduction to ease you in. Other books I've read on C are usually very very basic and underwhelming and you end up already knowing like 90% of the things taught, whereas this book actually shows you everything. Although don't expect it to constantly hold your hand. If you have a drive for learning and you're determined to write programs this book is definitely for you if you're lazy and want a (Learn programming language in 24hrs or 7days) guide and shortcuts this isn't for you, neither is that even realistic.

    I'm definitely gonna stick with this book!
  • Mark Hike
    5.0 out of 5 stars arrived in good condition
    Reviewed in Singapore on August 14, 2022
    Format: PaperbackVerified Purchase
    arrived in good condition
  • Client d'Amazon
    5.0 out of 5 stars Excellent !
    Reviewed in France on January 23, 2016
    Format: PaperbackVerified Purchase
    On apprend bien plus en lisant ce livre que des tutoriels internet ! Je recommande ce livre a quiconque veut se lancer dans la programmation en C.
    Report
  • Jason Timothy
    5.0 out of 5 stars Great
    Reviewed in Germany on September 10, 2025
    Format: PaperbackVerified Purchase
    Great book for me as refresher in C and covers all bases