Pointers
A pointer is a type that points to another type in memory
Pointers are typed: a pointer to an int is different than a pointer to a long
An asterisk before a variable name in its declaration makes it a pointer
- i.e.: int *currPointer; (pointer to an integer)
- i.e.: char *names[10]; (an array of char pointers)
An ampersand (&) gives the address of a pointer
- i.e.: currPtr = &value; (makes currPtr point to value)
An asterisk can also be used to de-reference a pointer
- i.e.: currValue = *currPtr;