Book description
Learn the fundamental programming principles using C, one of the most widely used programming languages in the world today. Learn to Program with C teaches computer programming to the complete beginner using the native C language. As such, it assumes you have no knowledge whatsoever about programming.
We discuss only those features and statements in C that are necessary to achieve our goal. Once you learn the principles well, they can be applied to any language. If you are worried that you are not good at high-school mathematics, don’t be. It is a myth that you must be good at mathematics to learn programming.
C is considered a ‘modern’ language even though its roots date back to the 1970s. Originally, C was designed for writing ‘systems’ programs—things like operating systems, editors, compilers, assemblers and input/output utility programs. But, today, C is used for writing all kinds of applications as well—word processing programs, spreadsheet programs, database management programs, accounting programs, games, robots, embedded systems/electronics (i.e., Arduino), educational software—the list is endless.
Table of contents
- Cover
- Title
- Copyright
- Dedication
- Contents at a Glance
- Contents
- About the Author
- About the Technical Reviewer
- Acknowledgements
- Preface
- Chapter 1: Elementary Programming Concepts
- Chapter 2: C – The Basics
- Chapter 3: Programs with Sequence Logic
- Chapter 4: Programs with Selection Logic
-
Chapter 5: Programs with Repetition Logic
- 5.1 Introduction
- 5.2 The while Construct
- 5.3 Keep a Count
- 5.4 Increment and Decrement Operators
- 5.5 Assignment Operators
- 5.6 Find Largest
- 5.7 Find Smallest
- 5.8 Read Data from a File
- 5.9 Send Output to a File
- 5.10 Payroll
- 5.11 The for Construct
- 5.12 Multiplication Tables
- 5.13 Temperature Conversion Table
- 5.14 Expressive Power of for
- 5.15 The do...while Statement
-
Chapter 6: Characters
- 6.1 Character Sets
- 6.2 Character Constants and Values
- 6.3 The Type char
- 6.4 Characters in Arithmetic Expressions
- 6.5 Read and Print Characters
- 6.6 Count Characters
- 6.7 Count Blanks in a Line of Data
- 6.8 Compare Characters
- 6.9 Read Characters from a File
- 6.10 Write Characters to a File
- 6.11 Convert Digit Characters to Integer
- Chapter 7: Functions
-
Chapter 8: Arrays
- 8.1 Simple vs Array Variable
- 8.2 Array Declaration
- 8.3 Store Values in an Array
- 8.4 Average and Differences from Average
- 8.5 Letter Frequency Count
- 8.6 Making Better Use of fopen
- 8.7 Array as Argument to a Function
- 8.8 String – Array of Characters
- 8.9 Palindrome
- 8.10 Array of Strings – Name of Day Revisited
- 8.11 A Flexible getString Function
- 8.12 A Geography Quiz Program
- 8.13 Find the Largest Number
- 8.14 Find the Smallest Number
- 8.15 A Voting Problem
- Chapter 9: Searching, Sorting, and Merging
- Chapter 10: Structures
- Index
Product information
- Title: Learn to Program with C
- Author(s):
- Release date: December 2015
- Publisher(s): Apress
- ISBN: 9781484213711
You might also like
book
Programming in C, 2nd Edition
Programming in C draws upon the exclusivity of the bestselling Programming in ANSI and Turbo C …
book
Embedded C Programming
This book provides a hands-on introductory course on concepts of C programming using a PIC® microcontroller …
book
C for Programmers with an Introduction to C11
The professional programmer’s Deitel® guide to procedural programming in C through 130 working code examples Written …
book
C Programming
C Programming: Test Your Skills is specifically designed to be used as the supplementary resource for …