Enjoy Prime FREE for 30 days
Here's what Amazon Prime has to offer:
| Delivery Speed | ![]() |
|---|---|
| Same-Day Delivery (in select cities) | FREE |
| One-Day Delivery | FREE |
| Two-Day Delivery | FREE |
Buy new:
$83.75$83.75
Ships from: Amazon.ca Sold by: Amazon.ca
Save with Used - Good
$55.00$55.00
Ships from: Amazon Sold by: Books 4 All The World
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.
Follow the author
OK
C Programming Language Paperback – March 22 1988
There is a newer edition of this item:
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.
- ISBN-100131103628
- ISBN-13978-0131103627
- Edition2
- PublisherPearson
- Publication dateMarch 22 1988
- LanguageEnglish
- Dimensions17.53 x 1.52 x 23.11 cm
- Print length288 pages
Frequently bought together

Products related to this item
In C, all variables must be declared before they are used, usually at the beginning of the function before any executable statements.Highlighted by 603 Kindle readers
The main distinction is that in C the called function cannot directly alter a variable in the calling function; it can only alter its private, temporary copy.Highlighted by 430 Kindle readers
We recommend writing only one statement per line, and using blanks around operators to clarify grouping.Highlighted by 398 Kindle readers
From the Publisher
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
Product description
From Amazon
From the Publisher
From the Inside Flap
The computing world has undergone a revolution since the publication of The C Programming Language in 1978. Big computers are much bigger, and personal computers have capabilities that rival the mainframes of a decade ago. During this time, C has changed too, although only modestly, and it has spread far beyond its origins as the language of the UNIX operating system.
The growing popularity of C, the changes in the language over the years, and the creation of compilers by groups not involved in its design, combined to demonstrate a need for a more precise and more contemporary definition of the language than the First edition of this book provided. In 1983, the American National Standards Institute (ANSI) established a committee whose goal was to produce "an unambiguous and machine-independent definition of the language C," while still retaining its spirit. The result is the ANSI standard for C.
The standard formalizes constructions that were hinted at but not described in the first edition, particularly structure assignment and enumerations. It provides a new form of function declaration that permits cross-checking of defini-tion with use. It specifies a standard library, with an extensive set of functions for performing input and output, memory management, string manipulation, and similar tasks. It makes precise the behavior of features that were not spelled out in the original definition, and at the same time states explicitly which aspects of the language remain machine-dependent.
This second edition of The C Programming Language describes C as defined by the ANSI standard. Although we have noted the places where the language has evolved, we have chosen to write exclusively in the new form. For the most part, this makes no significant difference; the most visible change is the new form of function declaration and definition. Modern compilers already support most features of the standard.
We have tried to retain the brevity of the first edition. C is not a big language, and it is not well served by a big book. We have improved the exposition of critical features, such as pointers, that are central to C programming. We have refined the original examples, and have added new examples in several chapters. For instance, the treatment of complicated declarations is augmented by programs that convert declarations into words and vice versa. As before, all examples have been tested directly from the text, which is in machine-readable form.
Appendix A, the reference manual, is not the standard, but our attempt to convey the essentials of the standard in a smaller space. It is meant for easy comprehension by programmers, but not as a definition for compiler writersÑ that role properly belongs to the standard itself. Appendix B is a summary of the facilities of the standard library. It too is meant for reference by programmers, not implementers. Appendix C is a concise summary of the changes from the original version.
As we said in the preface to the first edition, C "wears well as one's experience with it grows." With a decade more experience, we still feel that way. We hope that this book will help you to learn C and to use it well.
Brian W. Kernighan, Dennis M. RitchiePreface to the First EditionC is a general-purpose programming language which features economy of expression, modern control flow and data structures, and a rich set of operators. C is not a "very high level" language, nor a "big" one, and is not specialized to any particular area of application. But its absence of restrictions and its generality make it more convenient and effective for many tasks than supposedly more powerful languages.
C was originally designed for and implemented on the UNIX operating sys-tem on the DEC PDP-1 1, by Dennis Ritchie. The operating system, the C compiler, and essentially all UNIX applications programs (including all of the software used to prepare this book) are written in C. Production compilers also exist for several other machines, including the IBM System/370, the Honeywell 6000, and the Interdata 8/32. C is not tied to any particular hardware or system, however, and it is easy to write programs that will run without change on any machine that supports C.
This book is meant to help the reader learn how to program in C. It contains a tutorial introduction to get new users started as soon as possible, separate chapters on each major feature, and a reference manual. Most of the treatment is based on reading, writing and revising examples, rather than on mere statements of rules. For the most part, the examples are complete, real programs, rather than isolated fragments. All examples have been tested directly from the text, which is in machine-readable form. Besides showing how to make effective use of the language, we have also tried where possible to illustrate useful algorithms and principles of good style and sound design.
The book is not an introductory programming manual; it assumes some familiarity with basic programming concepts like variables, assignment statements, loops, and functions. Nonetheless, a novice programmer should be able to read along and pick up the language, although access to a more knowledgeable colleague will help.
In our experience, C has proven to be a pleasant, expressive, and versatile language for a wide variety of programs. It is easy to learn, and it wears well as one's experience with it grows. We hope that this book will help you to use it well.
Brian W. Kernighan, Dennis M. RitchieFrom the Back Cover
This book is meant to help the reader learn how to program in C. It is the definitive reference guide, now in a second edition. Although the first edition was written in 1978, it continues to be a worldwide best-seller. This second edition brings the classic original up to date to include the ANSI standard.
From the Preface:
We have tried to retain the brevity of the first edition. C is not a big language, and it is not well served by a big book. We have improved the exposition of critical features, such as pointers, that are central to C programming. We have refined the original examples, and have added new examples in several chapters. For instance, the treatment of complicated declarations is augmented by programs that convert declarations into words and vice versa. As before, all examples have been tested directly from the text, which is in machine-readable form.
As we said in the first preface to the first edition, C "wears well as one's experience with it grows." With a decade more experience, we still feel that way. We hope that this book will help you to learn C and use it well.
About the Author
Brian W. Kernighan received his BASc from the University of Toronto in 1964 and a PhD in electrical engineering from Princeton in 1969. He was a member of the Computing Science Research center at Bell Labs until 2000, and is now a professor in the Computer Science Department at Princeton. He was a co-creator of several programming languages, including AWK, AMPL, and a number of tools for document preparation. He is the co-author of 10 books and some technical papers, and holds 4
patents. He was elected to the National Academy of Engineering in 2002. His research areas include programming languages, tools and interfaces that make computers easier to use, often for non-specialist users. He is also interested in technology
education for non-technical audiences.
Dennis Ritchie was a computer scientist notable for his influence on ALTRAN, B, BCPL, C, Multics, and Unix.
Product details
- Publisher : Pearson; 2 edition (March 22 1988)
- Language : English
- Paperback : 288 pages
- ISBN-10 : 0131103628
- ISBN-13 : 978-0131103627
- Item weight : 540 g
- Dimensions : 17.53 x 1.52 x 23.11 cm
- Best Sellers Rank: #54,643 in Books (See Top 100 in Books)
- #5 in C Language
- #9 in C Programming Language
- #90 in Programming Languages Textbooks
- Customer Reviews:
About the author

Discover more of the author’s books, see similar authors, read author blogs and more
Products related to this item
Customer reviews
-
Top reviews
Top reviews from Canada
There was a problem filtering reviews right now. Please try again later.
One of my biggest struggles with Python was using it's giant library of pre-built and importable functions that are built into the language. C still has a lot of this built in, but what's different with this particular book is it really TEACHES you how to build functions and programs and breaks down every part and stage of it incredibly well (Seriously, I was blown away by the first chapter of this book which acts as a basic tutorial.)
The biggest thing I've taken from starting this book is it's helped me begin to appreciate a language like Python more since it has tons of useful and already built in functions, but going back to an older language like C has opened my eyes up to programming like never before. Using modern languages is "easier" to learn, but if you really want to become a better programmer you need to go back to where we came from to how we got here today. Also even though I may not use C very often (I'm studying to become a Sys Admin), I feel like it's very beneficial for me to improve my programming skills as a whole and I feel like working with C so far has made working with Python even easier.
In conclusion, I would highly recommend this book for someone wanting to learn C or if you have already learned one language and wanted to possibly challenge yourself by using an older language that may not be quite as elegant looking. Interestingly though, the authors make C seem incredibly clear and readable because it's all explained and written so well that you quickly forget how intimidating the language looks.
10/10.
Since I want to learn fundamentals and have the time, I can go through this book as slowly as I want, take the time to try extra exercises and modifications, and work through all error messages .
In that context, this is a great book for learning C. It's probably tougher slogging than books that aim to make it easy and fast to learn coding, with the tradeoff of not teaching C fundamentals. That's the impression I get having looked over some of those books for C and other languages.
Some programs don't work for me as written, so having another C reference handy is important ex. the first program didn't compile as written, but after changing "main()" to "int main()" it did (although I haven't verified if that was what the correct modification for that program.) Yes, I'm at that basic a level with C, and this is has been a good reference and instructional book so far.
Some things are a touch dated, but what else do you expect.
Top reviews from other countries
Reviewed in Germany on May 16, 2024


