CHAPTER 2

C

TABLE OF CONTENTS

2.1     Variables

2.2     Flow of Control

2.3     Functions

2.4     Recursion

2.5     Dynamic Memory Allocation

Chapter Summary

Exercises

Problems

A program inputs information, processes it, and outputs the results. This chapter shows how a C program inputs, processes, and outputs values. It reviews programming at Level HOL6 and assumes that you have experience writing programs in some high-order language—not necessarily C—such as C++, Java, or Python. Because this text presents concepts that are common to all those languages, you should be able to follow the discussion despite any differences in the language with which you are familiar.

2.1 Variables

A computer can directly execute statements in machine language ...

Get Computer Systems, 5th Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.