Skip to content

Sams Teach Yourself C in 21 Days

Spend $50 to get a free DVD!

ISBN-10: 0672317664

ISBN-13: 9780672317668

Edition: 5th 1999

Authors: Peter Aitken, Bradley L. Jones

List price: $29.99
Blue ribbon 30 day, 100% satisfaction guarantee!
what's this?
Rush Rewards U
Members Receive:
Carrot Coin icon
XP icon
You have reached 400 XP and carrot coins. That is the daily max!

Description:

This text presents C programming techniques in a logical and easy-to-follow sequence that helps the reader to understand the principles involved in developing C programs. Topics covered include variables, constants, conditional statements, and loops.
Customers also bought

Book details

List price: $29.99
Edition: 5th
Copyright year: 1999
Publisher: Sams
Publication date: 10/22/1999
Binding: Paperback
Pages: 912
Size: 7.36" wide x 9.13" long x 1.97" tall
Weight: 3.674
Language: English

Introduction
This Book's Special Features
Making a Better Book
Where You Can Obtain This Book's Code
Conventions Used in This Book
At a Glance
Where You're Going
Getting Started with C
A Brief History of the C Language
Why Use C?
Preparing to Program
The Program Development Cycle
Your First C Program
Printing Your Listings
The First Type and Run
The Components of a C Program
A Short C Program
The Program's Components
A Review of the Parts of a Program
Storing Data: Variables and Constants
Understanding Your Computer's Memory
Variables
Numeric Variable Types
Constants
Statements, Expressions, and Operators
Statements
Understanding Expressions
Operators
The if Statement
Evaluating Relational Expressions
The Logical Operators
More on True/False Values
Operator Precedence Revisited
Find the Number
Functions: The Basics
What Is a Function?
How a Function Works
Functions and Structured Programming
Writing a Function
Passing Arguments to a Function
Calling Functions
Where the Functions Belong
Basic Program Control
Arrays: The Basics
Controlling Program Execution
Nested Loops
Fundamentals of Input and Output
Displaying Information On-Screen
Inputting Numeric Data with scanf ()
In Review
At a Glance
Where You're Going
Using Numeric Arrays
What Is an Array?
Naming and Declaring Arrays
Understanding Pointers
What Is a Pointer?
Pointers and Simple Variables
Pointers and Variable Types
Pointers and Arrays
Pointer Cautions
Array Subscript Notation and Pointers
Passing Arrays to Functions
Pausing for a Second or Two
Characters and Strings
The char Data Type
Using Character Variables
Using Strings
Strings and Pointers
Strings Without Arrays
Displaying Strings and Characters
Reading Strings from the Keyboard
Structures
Simple Structures
More Complex Structures
Arrays of Structures
Initializing Structures
Structures and Pointers
Unions
Understanding Variable Scope
What Is Scope?
External Variables
Local Variables
Local Variables and the main() Function
Which Storage Class Should You Use?
Local Variables and Blocks
Secret Messages
Advanced Program Control
Ending Loops Early
The goto Statement
Infinite Loops
The switch Statement
Exiting the Program
Executing Operating System Commands in a Program
Working with the Screen, Printer, and Keyboard
Streams and C
C's Stream Functions
Accepting Keyboard Input
Screen Output
Redirecting Input and Output
When to Use fprintf()
In Review
At a Glance
Where You're Going
Pointers: Beyond the Basics
Pointers to Pointers
Pointers and Multidimensional Arrays
Arrays of Pointers
Pointers to Functions
Linked Lists
Using Disk Files
Streams and Disk Files
Types of Disk Files
Filenames
Opening a File
Writing and Reading File Data
File Buffering: Closing and Flushing Files
Sequential Versus Random File Access
Detecting the End of a File
File Management Functions
Using Temporary Files
Counting Characters
Manipulating Strings
String Length and Storage
Copying Strings
Concatenating Strings
Comparing Strings
Searching Strings
String Conversions
Miscellaneous String Functions
String-to-Number Conversions
Character Test Functions
Getting More from Functions
Passing Pointers to Functions
Type void Pointers
Functions That Have a Variable Number of Arguments
Functions That Return a Pointer
Exploring the C Function Library
Mathematical Functions
Dealing with Time
Error-Handling Functions
Searching and Sorting
Calculating Mortgage Payments
Working with Memory
Type Conversions
Allocating Memory Storage Space
Manipulating Memory Blocks
Working with Bits
Advanced Compiler Use
Programming with Multiple Source-Code Files
The C Preprocessor
Predefined Macros
Using Command-Line Arguments
In Review
Bonus Week At a Glance
Where You're Going
Object-Oriented Programming Languages
Procedural and Object-Oriented Languages
The Object-Oriented Constructs
The Java Programming Language
The C++ Programming Language
Hello C++ World!
Understanding the C++ Keywords
The C++ Data Types
Declaring Variables in C++
Doing Operations in C++
Working with Functions in C++
Working with C++ Classes and Objects
Working with Complex Data in C++
Using Classes
Creating Access Member Functions
Structures Versus Classes
Housekeeping with Classes
Starting with Constructors
Function Overloading Revisited
Object-Oriented Programming with C++
Review of the OOP Constructs in C++
Using Classes as Data Members
Inheriting in C++
Java Language Fundamentals
Structure of a Java Program
Java Program Essentials
Java Keywords
Java Identifiers
Data Types
Input and Output
Arrays
Operators
Flow Control
Java Classes and Methods
Defining a Class
Class Methods
Using Inheritance
More Java Techniques
Java Exceptions
Reading and Writing Files
Doing Graphics
Programming Java Applets
Bonus Week In Review
ASCII Character Chart
C/C++ Reserved Words
Working with Binary and Hexadecimal Numbers
The Decimal Number System
The Binary System
The Hexadecimal System
Portability Issues
Guaranteeing ANSI Compatibility
Avoiding the ANSI Standard
Using Portable Numeric Variables
Portable Structures and Unions
Common C Functions
Answers