Copyright
Brief Table of Contents
Table of Contents
Acknowledgments
About this book
About the cover illustration
Level 0. Encounter
Chapter 1. Getting started
1.1. Imperative programming
1.2. Compiling and running
Summary
Chapter 2. The principal structure of a program
2.1. Grammar
2.2. Declarations
2.3. Definitions
2.4. Statements
2.4.1. Iteration
2.4.2. Function calls
2.4.3. Function return
Level 1. Acquaintance
Chapter 3. Everything is about control
3.1. Conditional execution
3.2. Iterations
3.3. Multiple selection
Chapter 4. Expressing computations
4.1. Arithmetic
4.1.1. +, -, and *
4.1.2. Division and remainder
4.2. Operators that modify objects
4.3. Boolean context
4.3.1. Comparison
4.3.2. Logic
4.4. The ternary or conditional operator
4.5. Evaluation order
Chapter 5. Basic values and data
5.1. The abstract state machine