From Surf Wiki (app.surf) — the open knowledge base
The C Programming Language
Book by Brian Kernighan and Dennis Ritchie
Book by Brian Kernighan and Dennis Ritchie
| Field | Value | ||
|---|---|---|---|
| name | The C Programming Language | ||
| image | The C Programming Language, First Edition Cover.svg | ||
| caption | Cover of first edition | ||
| author | {{ubli | ||
| language | English | ||
| subject | C programming language | ||
| publisher | Prentice Hall | ||
| pub_date | {{ubli | ||
| {{timeline-event | date | 1978 | event=first edition }} |
| {{timeline-event | date | 1988 | event=second edition }} |
| isbn | 0131101633 | ||
| website |
|Brian Kernighan |Dennis Ritchie | |
The C Programming Language (sometimes termed K&R, after its authors' initials) is a computer programming book written by Brian Kernighan and Dennis Ritchie, the latter of whom originally designed and implemented the C programming language, as well as co-designed the Unix operating system with which development of the language was closely intertwined. The book was central to the development and popularization of C and is still widely read and used. Because the book was co-authored by the original language designer, and because the first edition of the book served for many years as the de facto standard for the language, the book was regarded by many to be the authoritative reference on C.
History
C was created by Dennis Ritchie at Bell Labs in the early 1970s as an augmented version of Ken Thompson's B. Another Bell Labs employee, Brian Kernighan, had written the first C tutorial,{{cite web |access-date=2013-03-03 |url-status=dead |archive-url=https://web.archive.org/web/20120723182804/http://www.harmonyatwork.in/blog/2009/10/leap-in-and-try-things-brian-kernighan/ |archive-date=July 23, 2012}} and he persuaded Ritchie to coauthor a book on the language.{{cite web |archive-url=https://ghostarchive.org/varchive/youtube/20211221/de2Hsvxaf8M |archive-date=2021-12-21 |url-status=live|title='C' Programming Language: Brian Kernighan - Computerphile |access-date=2018-11-11 Kernighan would write most of the book's "expository" material, and Ritchie's reference manual became its appendices.
The first edition, published February 22, 1978, was the first widely available book on the C programming language. Its version of C is sometimes termed K&R C (after the book's authors), often to distinguish this early version from the later version of C standardized as ANSI C.
In April 1988, the second edition of the book was published, updated to cover the changes to the language resulting from the then-new ANSI C standard, particularly with the inclusion of reference material on standard libraries. The second edition of the book (and , the most recent) has since been translated into over 20 languages. In 2012, an eBook version of the second edition was published in ePub, Mobi, and PDF formats.
C was first standardized in 1989 (as ANSI X3.159-1989) and has since undergone several revisions. However, no new edition of The C Programming Language has been issued to cover the more recent standards.
Reception
Byte magazine stated in August 1983, "[The C Programming Language] is the definitive work on the C language. Don't read any further until you have this book!" Jerry Pournelle wrote in the magazine that year that the book "is still the standard ... a bit terse". He continued, "You can learn the C language without getting Kernighan and Ritchie, but that's doing it the hard way. You're also working too hard if you make it the only book on C that you buy."
Influence
The C Programming Language has often been cited as a model for technical writing, with reviewers describing it as having clear presentation and concise treatment. Examples generally consist of complete programs of the type one is likely to encounter in daily use of the language, with an emphasis on system programming. Its authors wrote,

The book introduced the "Hello, World!" program, which prints only the text "hello, world" as an illustration of a minimal working C program. Since then, many texts have followed that convention for introducing a programming language.
Before the advent of ANSI C, the first edition of the text served as the de facto standard of the language for writers of C compilers. With the standardization of ANSI C, the authors more consciously wrote the second edition for programmers rather than compiler writers, writing,
The influence of The C Programming Language on programmers, a generation of whom first worked with C in universities and industry, has led many to accept the authors' programming style and conventions as recommended practice, if not normative practice. For example, the coding and formatting style of the programs presented in both editions of the book is often referred to as "K&R style" and became the coding style used by convention in the source code for the Unix and Linux kernels.
References
References
- (2005-12-16). "C in a Nutshell". O'Reilly Media, Inc..
- {{cite Q. Q29392176. Ritchie. Dennis M.
- {{cite Q. Q63565563
- Kernighan, Brian W.. "The C Programming Language, Second Edition".
- Keninghan, Brian W.. (1 October 2012). "An Interview with Brian Kernighan on C and The C Programming Language".
- Ward, Terry A.. (August 1983). "Annotated C / A Bibliography of the C Language". Byte.
- Pournelle, Jerry. (December 1983). "The User Looks at Books". Byte.
- {{cite Q. Q63413168
This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page.
Ask Mako anything about The C Programming Language — get instant answers, deeper analysis, and related topics.
Research with MakoFree with your Surf account
Create a free account to save articles, ask Mako questions, and organize your research.
Sign up freeThis content may have been generated or modified by AI. CloudSurf Software LLC is not responsible for the accuracy, completeness, or reliability of AI-generated content. Always verify important information from primary sources.
Report