Skip to content

C for Programmers With an Introduction to C11

ISBN-10: 0133462064

ISBN-13: 9780133462067

Edition: 2013

Authors: Paul Deitel, Harvey Deitel, Abbey Deitel

List price: $31.99
Blue ribbon 30 day, 100% satisfaction guarantee!
Buy eBooks
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!


In C for Programmers with an Introduction to C11, the Deitels bring their proven Live Code approach to teaching today’s powerful new version of the C language. Like all Deitel Developer titles, they teach the best way possible: via hundreds of complete example programs, with thousands of lines of downloadable source code. Since support for the new C11 standard currently varies widely by compiler, discussions of C11-only features are set apart in sections that are easy to use or skip, as you choose. Throughout, the Deitels reflect modern idioms and best practices for writing robust C code whether you’re working with C11 or the older C99. Unlike other C books, this guide supports the CERT Coordination Center's authoritative secure coding standards wherever appropriate for a book at this level. The Deitels have consulted with CERT Secure Coding Manager Robert Seacord to cover many secure coding topics, including testing for arithmetic overflows, using unsigned integer types, secure functions in Annex K of the C standards, checking status information returned by standard-library functions, and more. Using these techniques, you can write industrial-strength code that stands up to attacks from viruses, worms, and other forms of malware. Ideal for anyone who’s worked with at least one programming language, C and C11 for Programmers covers structured program development, program control, functions, arrays, pointers, characters, strings, formatted I/O, structures, unions, bit manipulation, enums, file processing, data structures, preprocessing, and more. All sample code is thoroughly tested on both the GNU gcc compiler and Microsoft® Visual C++, and all exercises work with these compilers.
Customers also bought

Book details

List price: $31.99
Copyright year: 2013
Publisher: Pearson Education, Limited
Publication date: 4/21/2013
Binding: Paperback
Pages: 608
Size: 7.00" wide x 9.00" long x 1.00" tall
Weight: 1.628
Language: English

Paul Deitel has taught Visual Basic, Java, C and C++ at numerous hardware and software companies, including Sun Microsystems, Digital Equipment Corporation, IBM, Open Environment Corporation, Adra Systems, and Cambridge Technology Partners, and is himself an expert developer.

Paul J. Deitel, CEO and Chief Technical Officer of Deitel & Associates, Inc., is a graduate of MITrsquo;s Sloan School of Management, where he studied Information Technology. He holds the Java Certified Programmer and Java Certified Developer certifications, and has been designated by Sun Microsystems as a Java Champion. Through Deitel & Associates, Inc., he has delivered Java, C, C++, C# and Visual Basic courses to industry clients, including IBM, Sun Microsystems, Dell, Lucent Technologies, Fidelity, NASA at the Kennedy Space Center, the National Severe Storm Laboratory, White Sands Missile Range, Rogue Wave Software, Boeing, Stratus, Cambridge Technology Partners, Open Environment Corporation, One Wave, Hyperion Software, Adra Systems, Entergy, CableData Systems, Nortel Networks, Puma, iRobot, Invensys and many more. He has also lectured on Java and C++ for the Boston Chapter of the Association for Computing Machinery. He and his father, Dr. Harvey M. Deitel, are the worldrsquo;s best-selling programming language textbook authors. Dr. Harvey M. Deitel, Chairman and Chief Strategy Officer of Deitel & Associates, Inc., has 45 years of academic and industry experience in the computer field. Dr. Deitel earned B.S. and M.S. degrees from MIT and a Ph.D. from Boston University. He has 20 years of college teaching experience, including earning tenure and serving as the Chairman of the Computer Science Department at Boston College before founding Deitel & Associates, Inc., with his son, Paul J. Deitel. He and Paul are the co-authors of several dozen books and multimedia packages and they are writing many more. With translations published in Japanese, German, Russian, Spanish, Traditional Chinese, Simplified Chinese, Korean, French, Polish, Italian, Portuguese, Greek, Urdu and Turkish, the Deitelsrsquo; texts have earned international recognition. Dr. Deitel has delivered hundreds of professional seminars to major corporations, academic institutions, government organizations and the military.

The C Programming Language
CStandard Library
C++ and Other C-Based Languages
Typical C Program Development Environment
Test-Driving a C Application in Windows, Linux and Mac OS X
Operating Systems
Introduction to C Programming
ASimple C Program: Printing a Line of Text
Another Simple C Program: Adding Two Integers
Arithmetic in C
Decision Making: Equality and Relational Operators
Secure C Programming
Control Statements: Part I
Control Structures
The if Selection Statement
The if…else Selection Statement
The while Repetition Statement
Class Average with Counter-Controlled Repetition
Class Average with Sentinel-Controlled Repetition
Nested Control Statements
Assignment Operators
Increment and Decrement Operators
Secure C Programming
Control Statements: Part II
Repetition Essentials
Counter-Controlled Repetition
for Repetition Statement
for Statement: Notes and Observations
Examples Using the for Statement
switch Multiple-Selection Statement
do…while Repetition Statement
break and continue Statements
Logical Operators
Confusing Equality (==) and Assignment (=) Operators
Secure C Programming
Program Modules in C
Math Library Functions
Function Definitions
Function Prototypes: A Deeper Look
Function Call Stack and Stack Frames
Passing Arguments By Value and By Reference
Random Number Generation
Example: A Game of Chance
Storage Classes
Scope Rules
Example Using Recursion: Fibonacci Series
Recursion vs. Iteration
Secure C Programming
Defining Arrays
Array Examples
Passing Arrays to Functions
Sorting Arrays
Case Study: Computing Mean, Median and Mode Using Arrays
Searching Arrays
Multidimensional Arrays
Variable-Length Arrays
Secure C Programming
Pointer Variable Definitions and Initialization
Pointer Operators
Passing Arguments to Functions by Reference
Using the const Qualifier with Pointers
Bubble Sort Using Pass-by-Reference
sizeof Operator
Pointer Expressions and Pointer Arithmetic
Relationship between Pointers and Arrays
Arrays of Pointers
Case Study: Card Shuffling and Dealing Simulation
Pointers to Functions
Secure C Programming
Characters and Strings
Fundamentals of Strings and Characters
Character-Handling Library
String-Conversion Functions
Standard Input/Output Library Functions
String-Manipulation Functions of the String-Handling Library
Comparison Functions of the String-Handling Library
Search Functions of the String-Handling Library
Memory Functions of the String-Handling Library
Other Functions of the String-Handling Library
Secure C Programming
Formatted Input/Output
Formatting Output with printf
Printing Integers
Printing Floating-Point Numbers
Printing Strings and Characters
Other Conversion Specifiers
Printing with Field Widths and Precision
Using Flags in the printf Format Control String
Printing Literals and Escape Sequences
Reading Formatted Input with scanf
Secure C Programming
Structures, Unions, Bit Manipulation and Enumerations
Structure Definitions
Initializing Structures
Accessing Structure Members
Using Structures with Functions
Example: High-Performance Card Shuffling and Dealing Simulation
Bitwise Operators
Bit Fields
Enumeration Constants
Secure C Programming
File Processing
Files and Streams
Creating a Sequential-Access File
Reading Data from a Sequential-Access File
Random-Access Files
Creating a Random-Access File
Writing Data Randomly to a Random-Access File
Reading Data from a Random-Access File
Case Study: Transaction-Processing Program
Secure C Programming
Data Structures
Self-Referential Structures
Dynamic Memory Allocation
Linked Lists
Secure C Programming
#include Preprocessor Directive
#define Preprocessor Directive: Symbolic Constants
#define Preprocessor Directive: Macros
Conditional Compilation
#error and #pragma Preprocessor Directives
# and ## Operators
Line Numbers
Predefined Symbolic Constants
Secure C Programming
Other Topics
Redirecting I/O
Variable-Length Argument Lists
Using Command-Line Arguments
Notes on Compiling Multiple-Source-File Programs
Program Termination with exit and atexit
Suffixes for Integer and Floating-Point Literals
Signal Handling
Dynamic Memory Allocation: Functions calloc and realloc
Unconditional Branching with goto
Operator Precedence Chart
ASCII Character Set
Number Systems
Abbreviating Binary Numbers as Octal and Hexadecimal Numbers
Converting Octal and Hexadecimal Numbers to Binary Numbers
Converting from Binary, Octal or Hexadecimal to Decimal
Converting from Decimal to Binary, Octal or Hexadecimal
Negative Binary Numbers: Two's Complement Notation
Sorting: A Deeper Look
Big O Notation
Selection Sort
Insertion Sort
Merge Sort
Additional Features of the C Standard
Support for C99
C99 Headers
Mixing Declarations and Executable Code
Declaring a Variable in a for Statement Header
Designated Initializers and Compound Literals
Type bool
Implicit int in Function Declarations
Complex Numbers
Variable-Length Arrays
Additions to the Preprocessor
Other C99 Features
New Features in the C11 Standard
Web Resources
Using the Visual Studio Debugger
Breakpoints and the Continue Command
Locals and Watch Windows
Controlling Execution Using the Step Into, Step Over, Step Out and Continue Commands
Autos Window
Using the GNU Debugger
Breakpoints and the run, stop, continue and print Commands
print and set Commands
Controlling Execution Using the step, finish and next Commands
watch Command