12 Controlling Flow IV Variable Scope and Structuring Code 13 Introduction to C Functions 14 Variable Scope and Structuring Code 15 Passing Values between Functions 16 Returning Function
Trang 2Cover
Contents at A Glance
Table of Contents
Introduction
I Welcome to C
1 What C Is All About
2 Analyzing C Programs
3 Variables and Constants
4 Introduction to Arrays
5 Preprocessor Directives
6 Input and Output
II C's Operators
7 Operators and Precedence
8 Relational and Logical Operators
9 Remaining C Operators
III Controlling Your Program's Execution
10 The while Loop
11 The for Loop
Trang 312 Controlling Flow
IV Variable Scope and Structuring Code
13 Introduction to C Functions
14 Variable Scope and Structuring Code
15 Passing Values between Functions
16 Returning Function Values
V Standard Input, Output, and Intrinsic Functions
17 Device and Character I/O
18 String and Numeric Functions
VI Building Blocks
19 Working with Arrays
20 Pointer Storage
21 Using Pointers
VII Advanced C
22 Introduction to Structures
23 Arrays of Structures
24 Simple C File Processing
25 Putting It All Together
Trang 4VIII Appendixes
A Memory Addressing, Binary, and Hexadecimal
B C's Precedence Table
C ASCII Table
Glossary
Index
Trang 6disk, where they are called records When you read a record from disk, you generally read that record into a structure variable and process it with your program
Unlike some other programming languages, not all C-read disk data has to be stored in record format Typically, you write a stream
of characters to a disk file and access that data either sequentially or randomly by reading it into variables and structures
The process of randomly accessing data in a file is simple Consider the data files of a large credit card organization When you make a purchase, the store calls the credit card company to get an authorization
Millions of names are in the credit card
Trang 7company's files There is no quick way the credit card company could read every
record sequentially from the disk that comes before yours Sequential files do not lend themselves to quick access In many
situations, looking up individual records in
a data file with sequential access is not feasible