Preface | |
Getting Started | |
Functions | p. 1 |
The Hello-World Program | p. 2 |
Editing, Compiling, and Linking | p. 7 |
Identifiers | p. 9 |
Defining, Declaring, and Calling Functions | p. 10 |
Values, Variables, and Expressions | p. 12 |
Input and Output | p. 21 |
Named Constants and Preprocessor Macros | p. 27 |
Functions With Arguments | p. 30 |
Exercises | p. 34 |
Control Statements and Related Operators | |
Logical Values and Relational Operators | p. 37 |
Iteration | p. 38 |
Increment, Decrement, and Compound Assignment Operators | p. 42 |
Examples Using Iteration | p. 46 |
Selection Statements and the Conditional Operator | p. 51 |
Examples Using Selection Statements | p. 59 |
Logical Operators | p. 67 |
The Comma Operator | p. 70 |
Exercises | p. 72 |
Types and Conversions | |
Bits, Bytes, and Addresses | p. 75 |
Basic Arithmetic Types | p. 79 |
Defining and Naming Types | p. 88 |
Type Conversions | p. 93 |
More About Format Strings | p. 99 |
Example Programs | p. 107 |
Exercises | p. 112 |
Arrays and Pointers | |
Lvalues and Objects | p. 115 |
The Qualifiers const and volatile | p. 116 |
One-Dimensional Arrays | p. 117 |
Pointers | p. 121 |
Multidimensional Arrays | p. 137 |
More About Identifiers and Objects | p. 138 |
A Case Study | p. 145 |
Exercises | p. 154 |
Pointers and Strings | |
Pointer Arithmetic | p. 157 |
Strings | p. 161 |
Functions for String Processing | p. 164 |
Input and Output of Characters and Strings | p. 169 |
Dynamic Memory Management | p. 180 |
Function Macros | p. 190 |
Exercises | p. 192 |
Structures, Unions, Bitfields and Bitwise Operators | |
Structures | p. 195 |
Structures, Arrays, and Pointers | p. 203 |
Example: Information Retrieval | p. 206 |
Self-Referential Structures and Linked Lists | p. 219 |
Example: Information Retrieval Revisited | p. 221 |
Unions | p. 232 |
Bitfields | p. 235 |
Operators for Bit Manipulation | p. 236 |
Exercises | p. 239 |
Streams and Files | |
Processing Streams and Files | p. 241 |
Functions With Varying Numbers of Arguments | p. 272 |
Conditional Directives | p. 277 |
Exercises | p. 280 |
Appendix 1: Keywords | p. 283 |
Appendix 2: Operators, Precedence, and Associativity | p. 284 |
Appendix 3: Integrated Development Environments | p. 287 |
Appendix 4: MS-DOS Memory Models | p. 295 |
Glossary | p. 298 |
For Further Reading | p. 309 |
Index | p. 311 |
Table of Contents provided by Blackwell. All Rights Reserved. |