Book description
Beginning C, 5th Edition teaches you how to program using the widely-available C language. You'll begin from first-principles and progress through step-by-step examples to become a competent, C-language programmer. All you need are this book and any of the widely available free or commercial C or C++ compilers, and you'll soon be writing real C programs.
C is a foundational language that every programmer ought to know. C is the basis for C# used in Microsoft .NET programming. It is the basis for Objective-C used in programming for the iPhone, the iPad, and other Apple devices. It is the basis for the C++ that is widely used in a great many contexts, including the GNU Project. It underlies the Linux operating system and many of its utilities. Learning C provides a strong foundation for any programming care, and will even help you better understand more modern languages such as Java.
Beginning C is written by renowned author Ivor Horton. The book increases your programming expertise by guiding you through the development of fully working C applications that use what you've learned in a practical context. You'll also be able to strike out on your own by trying the exercises included at the end of each chapter. At the end of the book you'll be confident in your skills with all facets of the widely-used and powerful C language.
The only beginning-level book to cover the latest ANSI standard in C
Revised to cover C99 features newly-supported by language compilers
Emphasizes writing code after the first chapter
Includes substantial examples relevant to intermediate users
What you'll learn
Make use of all core language features such as for loops and branching
Dynamically manage memory using pointers and indirection
Modularize your code through controlling scope and creating functions
Move data in and out of your program via keyboard, display monitor, and data files
Have the computer write your code for you via preprocesser directives
Properly type your data and create structures to manage it efficiently
Who this book is for
Beginning C, 5th Edition is aimed at programmers aspiring to work with C and C-like languages on platforms ranging from mobile devices such as phones and tablets to desktop environments to server hardware. The book is also helpful to programmers working in the field of embedded software, such as that used to control microwaves, toasters, and other home appliances. Any programmer seeking mastery of possibly the most fundational language in existence will find in Beginning C an excellent, sound, standards-based introduction that will serve them well in their career.
Table of contents
- Title Page
- Dedication
- Contents at a Glance
- Contents
- About the Author
- About the Technical Reviewer
- Acknowledgments
- Introduction
- CHAPTER 1: Programming in C
-
CHAPTER 2: First Steps in Programming
- Memory in Your Computer
- What Is a Variable?
- Basic Arithmetic Operations
- Variables and Memory
- Working with Floating-Point Numbers
- More Complicated Expressions
- Defining Named Constants
- Knowing Your Limitations
- Introducing the sizeof Operator
- Choosing the Correct Type for the Job
- Explicit Type Conversion
- More Numeric Data Types
- The op= Form of Assignment
- Mathematical Functions
- Designing a Program
- Summary
- CHAPTER 3: Making Decisions
-
CHAPTER 4: Loops
- How Loops Work
- Introducing the Increment and Decrement Operators
- The for Loop
- General Form of the for Loop
- More on the Increment and Decrement Operators
- The for Loop Revisited
- The while Loop
- Nested Loops
- Nested Loops and the goto Statement
- The do-while Loop
- The continue Statement
- Designing a Program
- Summary
- CHAPTER 5: Arrays
- CHAPTER 6: Applications with Strings and Text
- CHAPTER 7: Pointers
- CHAPTER 8: Structuring Your Programs
- CHAPTER 9: More on Functions
- CHAPTER 10: Essential Input and Output
- CHAPTER 11: Structuring Data
-
CHAPTER 12: Working with Files
- The Concept of a File
- Accessing Files
- Writing a Text File
- Reading a Text File
- Reading and Writing Strings to a Text File
- Formatted File Input and Output
- Dealing with Errors
- More Open Modes for Text Files
- The freopen_s() Function
- Binary File Input and Output
- Moving Around in a File
- Using Temporary Work Files
- Updating Binary Files
- File Open Modes Summary
- Designing a Program
- Summary
- CHAPTER 13: The Preprocessor and Debugging
- CHAPTER 14: Advanced and Specialized Topics
- APPENDIX A: Computer Arithmetic
- APPENDIX B: ASCII Character Code Definitions
- APPENDIX C: Reserved Words in C
- APPENDIX D: Input and Output Format Specifications
- APPENDIX E: Standard Library Header Files
- Index
Product information
- Title: Beginning C, Fifth Edition
- Author(s):
- Release date: February 2013
- Publisher(s): Apress
- ISBN: 9781430248811
You might also like
book
21st Century C, 2nd Edition
Throw out your old ideas of C, and relearn a programming language that’s substantially outgrown its …
book
21st Century C
Throw out your old ideas of C, and relearn a programming language that’s substantially outgrown its …
book
Practical C
Learn practical C techniques, including often-needed algorithms within reusable functions. In this book, you'll have the …
book
Jumpstarting C
All Make Jumpstart books provide a quick way for makers to "jumpstart" their knowledge of a …