Sell Back Your Copy
For a $26.46 Gift Card
Trade in
Have one to sell? Sell yours here
C Programming Language, 2nd Ed
 
 
Tell the Publisher!
I'd like to read this book on Kindle

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

C Programming Language, 2nd Ed [Hardcover]

Brian W. Kernighan (Author), Dennis M. Ritchie (Author)
4.6 out of 5 stars  See all reviews (310 customer reviews)


Available from these sellers.


Formats

Amazon Price New from Used from
Hardcover --  
Paperback $40.53  

Book Description

Prentice-Hall Software Series March 1989

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.

--This text refers to the Paperback edition.


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? --This text refers to the Paperback edition.

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. --This text refers to the Paperback edition.

Product Details

  • Hardcover: 272 pages
  • Publisher: Prentice Hall; 2 Sub edition (March 1989)
  • Language: English
  • ISBN-10: 0131103709
  • ISBN-13: 978-0131103702
  • Product Dimensions: 9.2 x 6.9 x 0.7 inches
  • Shipping Weight: 14.4 ounces
  • Average Customer Review: 4.6 out of 5 stars  See all reviews (310 customer reviews)
  • Amazon Best Sellers Rank: #353,732 in Books (See Top 100 in Books)

More About the Authors

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

 

Customer Reviews

310 Reviews
5 star:
 (249)
4 star:
 (34)
3 star:
 (13)
2 star:
 (6)
1 star:
 (8)
 
 
 
 
 
Average Customer Review
4.6 out of 5 stars (310 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

237 of 239 people found the following review helpful:
5.0 out of 5 stars A high-intensity tutorial and a great reference, March 13, 2000
By 
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.

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


113 of 120 people found the following review helpful:
5.0 out of 5 stars The best programming book I ever bought., July 12, 2000
I've first bought this book when I started my academic studies,and 5 years of work with Fortran 77 and three years of work withPascal.

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).

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


88 of 95 people found the following review helpful:
5.0 out of 5 stars The most elegant programming book I have ever read, November 8, 1997
By 
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.

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No

Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews











Only search this product's reviews



Inside This Book (learn more)
First Sentence:
C is a general-purpose programming language. Read the first page
Key Phrases - Statistically Improbable Phrases (SIPs): (learn more)
void ungetch, int getline, int getch, int nlines, temperature conversion program, complicated declarations, storage allocator, void qsort, extern declarations, pointer version, char line, int power, double pop, void swap, character pointer, address arithmetic, void push, register variables, file descriptor, int right, automatic variables, replacement text, file pointer
New!
Books on Related Topics | Concordance | Text Stats
Browse Sample Pages:
Front Cover | Table of Contents | First Pages | Index | Back Cover | Surprise Me!
Search Inside This Book:

Citations (learn more)
1 book cites this book:


Books on Related Topics (learn more)


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 
(2)
(1)
(1)

Your tags: Add your first tag
 

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

Customer Discussions

This product's forum
Discussion Replies Latest Post
Ritchie passed away today 0 Oct 13, 2011
Welcome to the The C Programming Language forum 2 Jan 17, 2006
See all 2 discussions...  
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Search Customer Discussions
   
Related forums





Look for Similar Items by Category


Look for Similar Items by Subject