Programming in C, 4th Edition will teach you how to write programs in the C programming language. Whether you’re a novice or experienced programmer, this book will provide you with a clear understanding of this language, which is the foundation for many object-oriented programming languages such as C++, Objective-C, C#, and Java.
This book teaches C by example, with complete C programs used to illustrate each new concept along the way. Stephen Kochan provides step-by-step explanations for all C functions. You will learn both the language fundamentals and good programming practices. Exercises at the end of each chapter make the book ideally suited for classroom use or for self-instruction.
All the features of the C language are covered in this book, including the latest additions added with the C11 standard. Appendixes provide a detailed summary of the language and the standard C library, both organized for quick reference.
“Absolutely the best book for anyone starting out programming in C. This is an excellent introductory text with frequent examples and good text.…This is the book I used to learn C–it’s a great book.”
–Vinit S. Carpenter, Learn C/C++ Today
Register your book at informit.com/register for convenient access to downloads, updates, and corrections as they become available.
Table of Contents
Chapter 1 Some Fundamentals
Chapter 2 Compiling and Running Your First Program
Chapter 3 Variables, Data Types, and Arithmetic Expressions
Chapter 4 Program Looping
Chapter 5 Making Decisions
Chapter 6 Working with Arrays
Chapter 7 Working with Functions
Chapter 8 Working with Structures
Chapter 9 Character Strings
Chapter 10 Pointers
Chapter 11 Operations on Bits
Chapter 12 The Preprocessor
Chapter 13 Extending Data Types with the Enumerated Data Type, Type Definitions, and Data Type Conversions
Chapter 14 Working with Larger Programs
Chapter 15 Input and Output Operations in C
Chapter 16 Miscellaneous and Advanced Features
Chapter 17 Debugging Programs
Chapter 18 Object-Oriented Programming
Appendix A C Language Summary
Appendix B The Standard C Library
Appendix C Compiling Programs with gcc
Appendix D Common Programming Mistakes