C Programming Language, 2nd edition

Published by Pearson (March 22, 1988) © 1988

  • Brian W. Kernighan
  • Dennis Ritchie

eTextbook

C$57.99

  • Easy-to-use search and navigation
  • Add notes and highlights
  • Flashcards help streamline study sessions
C$87.49

  • A print text (hardcover or paperback) 
  • Free shipping
  • Also available for purchase as an ebook from all major ebook resellers, including InformIT.com

This second edition 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.

  • all examples have been tested, which is in machine-readable form.
  • it discusses various aspects of C in more detail, although the emphasis is on examples of complete programs, rather than isolated fragments.
  • it deals with basic data types, operators and expressions.
  • covers functions and program structure, external variables, scope rules, multiple source files, and also touches on the preprocessor.
  • it also describes an interface between C programs and the UNIX operating system, concentrating on input/output, the file system, and storage allocation.
  • it also provides a language reference manual. The official statement of the syntax and semantics of C is the ANSI standard.


1. A Tutorial Introduction.


2. Types, Operators, and Expressions.


3. Control Flow.


4. Functions and Program Structure.


5. Pointers and Arrays.


6. Structures.


7. Input and Output.


8. The UNIX System Interface.


Appendix A.


Appendix B.


Appendix C.


Index.

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.

Need help? Get in touch

Pearson+

All in one place. Pearson+ offers instant access to eTextbooks, videos and study tools in one intuitive interface. Students choose how they learn best with enhanced search, audio and flashcards. The Pearson+ app lets them read where life takes them, no wi-fi needed. Students can access Pearson+ through a subscription or their MyLab or Mastering course.

Video
Play
Privacy and cookies
By watching, you agree Pearson can share your viewership data for marketing and analytics for one year, revocable upon changing cookie preferences. Disabling cookies may affect video functionality. More info...

Pearson eTextbook: What’s on the inside just might surprise you

They say you can’t judge a book by its cover. It’s the same with your students. Meet each one right where they are with an engaging, interactive, personalized learning experience that goes beyond the textbook to fit any schedule, any budget, and any lifestyle.Â