Introducing C
History of C
Origins
Standardization
C++
Strengths and Weaknesses of C
Strengths
Weaknesses
Effective Use of C
C Fundamentals
Writing a Simple Program
Program: Printing a Pun
Compiling and Linking
The General Form of a Simple Program
Directives
Functions
Statements
Printing Strings
Comments
Variables and Assignment
Types
Declarations
Assignment
Printing the Value of a Variable
Program
Computing the Dimensional Weight of a Box
Initialization
Printing Expressions
Reading Input Program: Computing the Dimensional Weight of a Box (Revisited)
Defining Constants Program: Converting from Fahrenheit to Celsius
Identifiers
Keywords
Layout of a C Program
Formatted Input/Output
The printf Function Conversion Specifications
Program: Using printf to Format Numbers
Escape Sequences
The scanf Function How scanf Works
Ordinary Characters in Format Strings
Confusing printf with scanf
Program: Computing the Value of Stock Holdings
Expressions
Arithmetic Operators
Operator Precedence and Ass...ociativity
Program: Computing a UPC Check Digit
Assignment Operators Simple Assignment
Lvalues
Compound Assignment
Increment and Decrement Operators
Expression Evaluation Order of Subexpression Evaluation
Expression Statements
5 Selection Statements
Logical Expressions Relational Operators
Equality Operators
Logical Operators
The if Statement Compound Statements
The else Clause
Cascaded if Statements
Program: Calculating a Broker's Commission
The 'Dangling else' Problem
Conditional Expressions
Boolean Values
The switch Statement The Role of the break Statement
Program: Printing a Date in Legal Form
Loops
The while Statement Infinite Loops
Program: Printing a Table of Squares
Program: Summing a Series of Numbers
The do Statement Program: Calculating the Number of Digits in an Integer
The for Statement for Statement Idioms
Omitting Expressions in a for Statement
The Comma Operator
Program: Printing a Table of Squares (Revisited)
Exiting from a Loop
The break Statement
The continue Statement
The goto Statement
Program: Balancing a Checkbook
The Null Statement
Basic Types
Integer Types Integer Constants
Reading and Writing Integers
Program: Summing a Series of Numbers (Revisited)
Floating Types
Floating Constants
Reading and Writing Floating-Point Numbers
Character Types
Escape Sequences
Character-Handling Functions
Reading and Writing Characters
Program: Determining the Length of a Message
The sizeof Operator
Type Conve
Table of Contents provided by Publisher. All Rights Reserved.