The Table of Contents for On To C follows. Additional information about this book, along with access to software, is available via


In this Table of Contents, you learn about what On To C contains in detail.

1 How this Book Teaches you the Language

2 How to Compile and Run a Simple Program

3 How to Declare Variables

4 How to Write Arithmetic Expressions

5 How to Write Statements that Read Information from your Keyboard

6 How to Define Simple Functions

7 How to Benefit from Procedure Abstraction

8 How to Work with Local and Global Variables

9 How to Perform Tests Using Numerical Predicates

10 How to Write One-Way and Two-Way Conditional Statements

11 How to Combine Boolean Expressions

12 How to Write Iteration Statements

13 How to Write Iterative Filters

14 How to Write Recursive Functions

15 How to Solve Definition Ordering Problems with Function Prototypes

16 How to Create Structures and Objects

17 How to Work with Arrays Of Numbers

18 How to Work with Arrays of Structure Objects

19 How to Use Pointer Parameters to Avoid Structure Copying

20 How to Use Pointer Parameters to Alter Values

21 How to Access Array Elements Using Pointers

22 How to Create New Structure Objects at Run Time

23 How to Store Pointers to Structure Objects

24 How to Define Constructor, Reader, and Writer Functions

25 How to Benefit from Data Abstraction

26 How to Write Multiway Conditional Statements

27 How to Use Enumerations to Improve Readability

28 How to Use Type Synonyms to Improve Readability

29 How to Use Unions to Capture Class Distinctions

30 How to Use Bits to Record State Information

31 How to Write Functions that Return Character Strings

32 How to Write Statements that Read Character Strings

33 How to Deposit Character Strings into Structure Objects

34 How to Test String Characters

35 How to Do Tabular Printing

36 How to Read From and Write to Files

37 How to Reclaim Memory

38 How to Tell Time

39 How to Access Command-Line Arguments

40 How to Define Functions with a Variable Number of Arguments

41 How to Arrange for Conditional Compilation

42 How to Arrange Functions in a Multiple-File Program

43 How to Arrange Global Variables in a Multiple-File Program

44 How to Compile a Multiple-File Program

Appendix A: Print Specifications

Appendix B: Read Specifications

Appendix C: Operator Precedence

Appendix D: Formatted Time Display

Appendix E: How to Use Sockets to Connect Programs