O'Reilly logo

Sams Teach Yourself C++ in 24 Hours, Third Edition by Jesse Liberty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required