Book description
The world runs on code written in the C programming language, yet most schools begin the curriculum with Python or Java. Effective C bridges this gap and brings C into the modern era—covering the modern C17 Standard as well as potential C2x features. With the aid of this instant classic, you’ll soon be writing professional, portable, and secure C programs to power robust systems and solve real-world problems.
Robert C. Seacord introduces C and the C Standard Library while addressing best practices, common errors, and open debates in the C community. Developed together with other C Standards committee experts, Effective C will teach you how to debug, test, and analyze C programs. You’ll benefit from Seacord’s concise explanations of C language constructs and behaviors, and from his 40 years of coding experience.
You’ll learn:
•How to identify and handle undefined behavior in a C program
•The range and representations of integers and floating-point values
•How dynamic memory allocation works and how to use nonstandard functions
•How to use character encodings and types
•How to perform I/O with terminals and filesystems using C Standard streams and POSIX file descriptors
•How to understand the C compiler’s translation phases and the role of the preprocessor
•How to test, debug, and analyze C programs
Effective C will teach you how to write professional, secure, and portable C code that will stand the test of time and help strengthen the foundation of the computing world.
Table of contents
- Cover Page
- Title Page
- Copyright Page
- Dedication
- About the Author
- About the Contributor
- About the Tech Reviewer
- BRIEF CONTENTS
- CONTENTS IN DETAIL
- FOREWORD BY PASCAL CUOQ
- FOREWORD BY OLLIE WHITEHOUSE
- ACKNOWLEDGMENTS
- INTRODUCTION
- 1 GETTING STARTED WITH C
- 2 OBJECTS, FUNCTIONS, AND TYPES
- 3 ARITHMETIC TYPES
-
4 EXPRESSIONS AND OPERATORS
- Simple Assignment
- Evaluations
- Function Invocation
- Increment and Decrement Operators
- Operator Precedence and Associativity
- Order of Evaluation
- sizeof Operator
- Arithmetic Operators
- Bitwise Operators
- Logical Operators
- Cast Operators
- Conditional Operator
- _Alignof Operator
- Relational Operators
- Compound Assignment Operators
- Comma Operator
- Pointer Arithmetic
- Summary
- 5 CONTROL FLOW
- 6 DYNAMICALLY ALLOCATED MEMORY
- 7 CHARACTERS AND STRINGS
- 8 INPUT/OUTPUT
- 9 PREPROCESSOR
- 10 PROGRAM STRUCTURE
- 11 DEBUGGING, TESTING, AND ANALYSIS
- REFERENCES
- INDEX
Product information
- Title: Effective C
- Author(s):
- Release date: August 2020
- Publisher(s): No Starch Press
- ISBN: 9781718501041
You might also like
book
C++20 for Programmers: An Objects-Natural Approach, 3rd Edition
The professional programmer's Deitel® guide to C++20 "C++20 for Programmers builds up an intuition for modern …
video
Ultimate Go Programming, Second Edition
16+ Hours of Video Instruction provides an intensive, comprehensive, and idiomatic view of the Go programming …
book
Programming in C, Fourth Edition
will teach you how to write programs in the C programming language. Whether you’re a novice …
book
Systems Performance, 2nd Edition
covers concepts, strategy, tools, and tuning for operating systems and applications, using Linux-based operating systems as …