O'Reilly logo

Sams Teach Yourself C++ in One Hour a Day, Sixth Edition by Bradley Jones, Siddhartha Rao, 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

Chapter 8. Pointers Explained

One of the powerful but low-level tools available to a C++ programmer is the ability to manipulate computer memory directly by using pointers. This is an advantage that C++ has over some other languages, such as Java, C#, and Visual Basic.

Pointers present two special challenges when you’re learning C++: They can be somewhat confusing, and it isn’t immediately obvious why they are needed. This lesson explains how pointers work, step-by-step. You will fully understand the need for pointers, however, only as the book progresses.

In this lesson, you will learn

  • What pointers are

  • How to declare and use pointers

  • What the free store is and how to manipulate memory

What Is a Pointer?

A pointer is a variable that holds a memory address. ...

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