< Previous | Contents | Next >
Pointers are a powerful part of C++. In some ways, they behave like iterators from the STL. Often, you can use them in place of references. But pointers offer functionality that no other part of the language can. In this chapter, you’ll learn the basic mechanics of pointers and get an idea of what they’re good for. Specifically, you’ll learn to:
n Declare and initialize pointers
n Dereference pointers
n Use constants and pointers
n Pass and return pointers
n Work with pointers and arrays