Chapter    2

Programming Basics

Before we dig into C programming specifics, let’s spend a few minutes discussing the basics of programming. Why write a computer program? How do computer programs work? We’ll answer these questions and look at all of the elements that come together to create a computer program, such as source code, a compiler, and the computer itself.

If you are already familiar with the basics of programming, please feel free to skim through this chapter and, if you feel comfortable with the material, skip on ahead to Chapter 3. The goal here is to get you familiar with the steps involved in creating a running a simple program.

Programming

Why write a computer program? There are many reasons. Some programs are written in direct ...

Get Learn C on the Mac: For OS X and iOS, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.