1. Introduction
  2. Preface
  3. Preface to the first edition
  4. Chapter 1 - A Tutorial Introduction
    1. Getting Started
    2. Variables and Arithmetic Expressions
    3. The "For" Statement
    4. Symbolic Constants
    5. Character Input and Output
      1. File Copying
      2. Character Counting
      3. Line Counting
      4. Word Counting
    6. Arrays
    7. Functions
    8. Arguments - Call by Value
    9. Character Arrays
    10. External Variables and Scope
  5. Chapter 2 - Types, Operators and Expressions
    1. Variable Names
    2. Data Types and Sizes
    3. Constants
    4. Declarations
    5. Arithmetic Operators
    6. Relational and Logical Operators
    7. Type Conversions
    8. Increment and Decrement Operators
    9. Bitwise Operators
    10. Assignment Operators and Expressions
    11. Conditional Expressions
    12. Precedence and Order of Evaluation
  6. Chapter 3 - Control Flow
    1. Statements and Blocks
    2. If-Else
    3. Else-If
    4. Switch
    5. Loops - While and For
    6. Loops - Do-While
    7. Break and Continue
    8. Goto and Labels
  7. Chapter 4 - Functions and Program Structure
    1. Basics of Functions
    2. Functions Returning Non-Integers
    3. External Variables
    4. Scope Rules
    5. Header Files
    6. Static Variables
    7. Register Variables
    8. Block Structure
    9. Initialization
    10. Recursion
    11. The C Preprocessor
      1. File Inclusion
      2. Macro Substitution
      3. Conditional Inclusion
  8. Chapter 5 - Pointers and Arrays
    1. Pointers and Addresses
    2. Pointers and Function Arguments
    3. Pointers and Arrays
    4. Address Arithmetic
    5. Character Pointers and Functions
    6. Pointer Arrays; Pointers to Pointers
    7. Multi-dimensional Arrays
    8. Initialization of Pointer Arrays
    9. Pointers vs. Multi-dimensional Arrays
    10. Command-line Arguments
    11. Pointers to Functions
    12. Complicated Declarations
  9. Chapter 6 - Structures
    1. Basics of Structures
    2. Structures and Functions
    3. Arrays of Structures
    4. Pointers to Structures
    5. Self-referential Structures
    6. Table Lookup
    7. Typedef
    8. Unions
    9. Bit-fields
  10. Chapter 7 - Input and Output
    1. Standard Input and Output
    2. Formatted Output - printf
    3. Variable-length Argument Lists
    4. Formatted Input - Scanf
    5. File Access
    6. Error Handling - Stderr and Exit
    7. Line Input and Output
    8. Miscellaneous Functions
      1. String Operations
      2. Character Class Testing and Conversion
      3. Ungetc
      4. Command Execution
      5. Storage Management
      6. Mathematical Functions
      7. Random Number Generation
  11. Chapter 8 - The UNIX System Interface
    1. File Descriptors
    2. Low Level I/O - Read and Write
    3. Open, Creat, Close, Unlink
    4. Random Access - Lseek
    5. Example - An implementation of Fopen and Getc
    6. Example - Listing Directories
    7. Example - A Storage Allocator
  12. Appendix A - Reference Manual
    1. Introduction
    2. Lexical Conventions
      1. Tokens
      2. Comments
      3. Identifiers
      4. Keywords
      5. Constants
      6. String Literals
    3. Syntax Notation
    4. Meaning of Identifiers
      1. Storage Class
      2. Basic Types
      3. Derived Types
      4. Type Qualifiers
    5. Objects and Lvalues
    6. Conversions
      1. Integral Promotion
      2. Integral Conversions
      3. Integer and Floating
      4. Floating Types
      5. Arithmetic Conversions
      6. Pointers and Integers
      7. Void
      8. Pointers to Void
    7. Expressions
      1. Pointer Conversion
      2. Primary Expressions
      3. Postfix Expressions
      4. Unary Operators
      5. Casts
      6. Multiplicative Operators
      7. Additive Operators
      8. Shift Operators
      9. Relational Operators
      10. Equality Operators
      11. Bitwise AND Operator
      12. Bitwise Exclusive OR Operator
      13. Bitwise Inclusive OR Operator
      14. Logical AND Operator
      15. Logical OR Operator
      16. Conditional Operator
      17. Assignment Expressions
      18. Comma Operator
      19. Constant Expressions
    8. Declarations
      1. Storage Class Specifiers
      2. Type Specifiers
      3. Structure and Union Declarations
      4. Enumerations
      5. Declarators
      6. Meaning of Declarators
      7. Initialization
      8. Type Names
      9. Typedef
      10. Type Equivalence
    9. Statements
      1. Labeled Statements
      2. Expression Statement
      3. Compound Statement
      4. Selection Statements
      5. Iteration Statements
      6. Jump Statements
    10. External Declarations
      1. Function Definitions
      2. External Declarations
    11. Scope and Linkage
      1. Lexical Scope
      2. Linkage
    12. Preprocessing
      1. Trigraph Sequences
      2. Line Splicing
      3. Macro Definition and Expansion
      4. File Inclusion
      5. Conditional Compilation
      6. Line Control
      7. Error Generation
      8. Pragmas
      9. Null Directive
      10. Predefined Names
    13. Grammar
  13. Appendix B - Standard Library
    1. Input and Output: <stdio.h>
      1. File Operations
      2. Formatted Output
      3. Formatted Input
      4. Character Input and Output Functions
      5. Direct Input and Output Functions
      6. File Positioning Functions
      7. Error Functions
    2. Character Class Tests: <ctype.h>
    3. String Functions: <string.h>
    4. Mathematical Functions: <math.h>
    5. Utility Functions: <stdlib.h>
    6. Diagnostics: <assert.h>
    7. Variable Argument Lists: <stdarg.h>
    8. Non-local Jumps: <setjmp.h>
    9. Signals: <signal.h>
    10. Date and Time Functions: <time.h>
    11. Implementation-defined Limits: <limits.h> and <float.h>
  14. Appendix C - Summary of Changes
  15. Solutions
    1. Chapter 1
      1. Exercise 1-1
      2. Exercise 1-2
      3. Exercise 1-3
      4. Exercise 1-4
      5. Exercise 1-5
      6. Exercise 1-6
      7. Exercise 1-7
      8. Exercise 1-8
      9. Exercise 1-9
      10. Exercise 1-10
      11. Exercise 1-11
      12. Exercise 1-12
      13. Exercise 1-13
      14. Exercise 1-14
      15. Exercise 1-15
      16. Exercise 1-16
      17. Exercise 1-17
      18. Exercise 1-18
      19. Exercise 1-19
      20. Exercise 1-20
      21. Exercise 1-21
      22. Exercise 1-22
      23. Exercise 1-23
      24. Exercise 1-24
    2. Chapter 2
      1. Exercise 2-1
      2. Exercise 2-2
      3. Exercise 2-3
      4. Exercise 2-4
      5. Exercise 2-5
      6. Exercise 2-6
      7. Exercise 2-7
      8. Exercise 2-8
      9. Exercise 2-9
      10. Exercise 2-10
    3. Chapter 3
      1. Exercise 3-1
      2. Exercise 3-2
      3. Exercise 3-3
      4. Exercise 3-4
      5. Exercise 3-5
      6. Exercise 3-6
    4. Chapter 4
      1. Exercise 4-1
      2. Exercise 4-2
      3. Exercise 4-3
      4. Exercise 4-4
      5. Exercise 4-5
      6. Exercise 4-6
      7. Exercise 4-7
      8. Exercise 4-8
      9. Exercise 4-9
      10. Exercise 4-10
      11. Exercise 4-11
      12. Exercise 4-12
      13. Exercise 4-13
      14. Exercise 4-14
    5. Chapter 5
      1. Exercise 5-1
      2. Exercise 5-2
      3. Exercise 5-3
      4. Exercise 5-4
      5. Exercise 5-5
      6. Exercise 5-6
      7. Exercise 5-7
      8. Exercise 5-8
      9. Exercise 5-9
      10. Exercise 5-10
      11. Exercise 5-11
      12. Exercise 5-12
      13. Exercise 5-13
      14. Exercise 5-14
      15. Exercise 5-15
      16. Exercise 5-16
      17. Exercise 5-17
      18. Exercise 5-18
      19. Exercise 5-19
      20. Exercise 5-20
    6. Chapter 6
      1. Exercise 6-1
      2. Exercise 6-2
      3. Exercise 6-3
      4. Exercise 6-4
      5. Exercise 6-5
      6. Exercise 6-6
    7. Chapter 7
      1. Exercise 7-1
      2. Exercise 7-2
      3. Exercise 7-3
      4. Exercise 7-4
      5. Exercise 7-5
      6. Exercise 7-6
      7. Exercise 7-7
      8. Exercise 7-8
      9. Exercise 7-9
    8. Chapter 8