(0) items

C Programming 2E Pa



Textbook Paperback
Pub. Date:
Includes 2-weeks free access to
step-by-step solutions for this book.
Step-by-Step solutions are actual worked out problems to the questions at the end of each chapter that help you understand your homework and study for your exams. Chegg and eCampus are providing you two weeks absolutely free. 81% of students said using Step-by-Step solutions prepared them for their exams.

Questions About This Book?

Why should I rent this book?
Renting is easy, fast, and cheap! Renting from can save you hundreds of dollars compared to the cost of new or used books each semester. At the end of the semester, simply ship the book back to us with a free UPS shipping label! No need to worry about selling it back.
How do rental returns work?
Returning books is as easy as possible. As your rental due date approaches, we will email you several courtesy reminders. When you are ready to return, you can print a free UPS shipping label from our website at any time. Then, just return the book to your UPS driver or any staffed UPS location. You can even use the same box we shipped it in!
What version or edition is this?
This is the 2nd edition with a publication date of 3/17/2008.
What is included with this book?
  • The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any CDs, lab manuals, study guides, etc.
  • The Used copy of this book is not guaranteed to include any supplemental materials. Typically, only the book itself is included.
  • The Rental copy of this book is not guaranteed to include any supplemental materials. You may receive a brand new copy, but typically, only the book itself.


You\'ve never seen a C book like this before: packed with useful information and examples, yet highly readable. Everyone from beginner to expert can profit from reading C Programming: A Modern Approach.

Table of Contents

Introducing C
History of C
Strengths and Weaknesses of C
Effective Use of C
C Fundamentals
Writing a Simple Program
Program: Printing a Pun
Compiling and Linking
The General Form of a Simple Program
Printing Strings
Variables and Assignment
Printing the Value of a Variable
Computing the Dimensional Weight of a Box
Printing Expressions
Reading Input Program: Computing the Dimensional Weight of a Box (Revisited)
Defining Constants Program: Converting from Fahrenheit to Celsius
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
Arithmetic Operators
Operator Precedence and Associativity
Program: Computing a UPC Check Digit
Assignment Operators Simple Assignment
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
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.

Please wait while the item is added to your cart...