[previous_group] * [up] [next] [next_group]

The Essence of Pointers

For some, working with pointers can be confusing; however, there are only a few things to remember about using pointers:
* How to declare one:
     int * ip;

* How to create one:
     ip = &x;
ip -------> x
* How to access one:
     *ip = 5;

ip -------> x
     x = *ip + 3;

ip -------> x

What will this do?

         *ip = x + *ip;

Things to remember:

* The & (address of operator) creates a pointer.
* The * (dereference operator) follows a pointer.
* An <Lvalue> can now be either:
* The value of a pointer variable IS an arrow.

Let's try a little pointer exercise

[up] to Overview.