Pointer is a value that happens to be an address
By setting the value of one variable to the address to the other, the variable points to the other
Pointers in C
Learning for CS 137
*
has 2 meanings- When used in the context of:
int * pX = &x;
You are modifying the type indicating it’s a pointer - When used in the context of:
int y = *pX;
You are dereferencing, telling the program to go to the value of the memory address
- When used in the context of:
&
- The memory address of the variable