The C Book — Table of Contents
This is the online version of The C Book, second edition by Mike Banahan, Declan Brady and Mark Doran, originally published by Addison Wesley in 1991. This version is made freely available.
While this book is no longer in print, its content is still very relevant today. The C language is still popular, particularly for open source software and embedded programming. We hope this book will be useful, or at least interesting, to people who use C.
If you have any comments about this book, or if you find any bugs in its presentation, please send a message to consulting@gbdirect.co.uk.
Although we ourselves do not have the time and tools to prepare this book in PDF format, we are very grateful to Professor Carlos José de Almeida Pereira of the University Estadual de Santa Cruz in Brazil for his work which he modestly describes as 'simply printing your "printer friendly" pages to a PDF file'. The pdf file of the book that he has produced in this way was made available here on 6th March 2007 and currently should be the same as the contents of this site, no updates having been made since the single file was produced.
An alternative version in pdf was later submitted in July 2010 by Ward van Wanrooij (updated in 2018) - you can download his version here. We make no representations for the accuracy or otherwise of either pdf version.
- Preface
- Chapter 1. An Introduction to C
- Chapter 2. Variables and Arithmetic
- Chapter 3. Control of Flow and Logical Expressions
- Chapter 4. Functions
- Chapter 5. Arrays and Pointers
- Chapter 6. Structured Data Types
- Chapter 7. The Preprocessor
- Chapter 8. Specialized Areas of C
- Chapter 9. Libraries
- 9.1. Introduction
- 9.2. Diagnostics
- 9.3. Character handling
- 9.4. Localization
- 9.5. Limits
- 9.6. Mathematical functions
- 9.7. Non-local jumps
- 9.8. Signal handling
- 9.9. Variable numbers of arguments
- 9.10. Input and output
- 9.11. Formatted I/O
- 9.12. Character I/O
- 9.13. Unformatted I/O
- 9.14. Random access functions
- 9.15. General Utilities
- 9.16. String handling
- 9.17. Date and time
- 9.18. Summary
- Chapter 10. Complete Programs in C
- Answers to Exercises
- Copyright and disclaimer