Book description
The Waite Group's C Primer Plus, Third edition, presents the ANSI C standard beginning with a discussion of the fundamentals of C programming and then continues on to illustrate real-world C programming concepts and techniques. The Waite Group's C Primer Plus, Third Edition, is jam-packed with hundreds of sample programs, challenging yet humorous examples, hints and quizzes. Get the latest information on migrating from C to C++ and find out what will change with the release of the new C ANSI/ISO standard. Learn the mechanics of C programming and how to create programs that are easy to read, debug and update using real-world, easy-to-follow examples.
Table of contents
- Copyright
- Preface
- About the Author
- Acknowledgments
- Tell Us What You Think!
- Getting Ready
- Introducing C
- Data and C
- Character Strings and Formatted Input/Output
- Operators, Expressions, and Statements
-
C Control Statements: Looping
- An Initial Example
- The while Statement
- Which Is Bigger: Using Relational Operators and Expressions
- Indefinite Loops and Counting Loops
- The for Loop
- More Assignment Operators: +=, −=, *=, /=, %=
- The Comma Operator
- An Exit-Condition Loop: do while
- Which Loop?
- Nested Loops
- Arrays
- A Loop Example Using a Function Return Value
- Chapter Summary
- Review Questions
- Programming Exercises
- C Control Statements: Branching and Jumps
- Character Input/Output and Redirection
- Functions
- Arrays and Pointers
-
Character Strings and String Functions
- Defining Strings Within a Program
- Character String Arrays and Initialization
- String Input
- String Output
- The Do-It-Yourself Option
- String Functions
- A String Example: Sorting Strings
- The ctype.h Character Functions and Strings
- Command-Line Arguments
- String to Number Conversions
- Chapter Summary
- Review Questions
- Programming Exercises
- File Input/Output
- Storage Classes and Program Development
-
Structures and Other Data Forms
- Sample Problem: Creating an Inventory of Books
- Setting Up the Structure Declaration
- Defining a Structure Variable
- Gaining Access to Structure Members
- Arrays of Structures
- Nested Structures
- Pointers to Structures
- Telling Functions About Structures
- Saving the Structure Contents in a File
- Structures: What Next?
- Unions: A Quick Look
- typedef: A Quick Look
- Fancy Declarations
- Functions and Pointers
- Chapter Summary
- Review Questions
- Programming Exercises
- Bit Fiddling
- The C Preprocessor and the C Library
- Advanced Data Representation
- Additional Reading
- C Operators
- Basic Types and Storage Classes
- Expressions, Statements, and Program Flow
- The ASCII Character Set
- The Standard ANSI C Library
- Differences Between C and C++
- The C9X Committee
- Answers to the Review Questions
- Index
Product information
- Title: C Primer Plus®, Third Edition
- Author(s):
- Release date: September 1998
- Publisher(s): Sams
- ISBN: 9781571691613
You might also like
book
C Primer Plus, Fourth Edition
is a conversational-style book aimed at those new to C programming. A friendly and easy-to-use self-study …
book
C Primer Plus, Fifth Edition
The new classic! C Primer Plus, now in its 5th edition, has been revised to include …
book
Absolute Beginner’s Guide to C, 2nd Edition
For beginning programmers, this updated edition answers all C programming questions. This bestseller talks to readers …
book
C
Designed for a compulsory fundamental course, C: From Theory to Practice uses a hands-on approach to …