Hour 9. Pointers

One of the most powerful tools available to a C++ programmer is a pointer. Pointers provide the capability to manipulate computer memory directly. Pointers, however, are also considered one of the most confusing aspects of C++.

I believe pointers can be understood without confusion if we spend just a little time understanding what pointers really are. In this hour you will learn

  • What pointers are

  • How to declare and use pointers

  • What the heap is and how to manipulate memory

This chapter explains how pointers work, step by step. Please note, however, that you will fully understand the need for pointers only as the book progresses.

Get Sams Teach Yourself C++ in 24 Hours, Third 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.