The following is a simple (I think!) example of the use of pointers...
1 2 3 4
int &variable1Label = variable1;
variable1Label = 101;
cout << "The value of integer1 after assigning a value "
<< "to the label is now: " << variable1 << endl << endl;
I'm not really understanding it, though. How does it actually work? I have referred to the tutorial on this site, but am still unsure.
This is an example of references, not pointers. variable1Label will have access to the same part of memory which was taken by variable1 so, by modifying variable1Label you will also modify variable1