Chapter 9. Working with Pointers

Every interesting C program that solves a real-world problem uses pointers and dynamic memory. Together, these two tools enable you to create programs that use more complex data structures than the ones you have seen so far (simple scalar values and arrays of scalar values).

This chapter introduces pointers, a prerequisite for working with dynamic memory, the topic covered in the following chapter. The two concepts—and therefore the two chapters—are closely related. Working with pointers also brings you in closer contact with the machine's low-level workings. For example, you will see and work with addresses of the objects in your computer's memory. This is less abstract than working with variables, and you will ...

Get C Programming: Visual Quickstart Guide 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.