Memory Addressing Operators
Operator | Operation | Example | Result |
---|---|---|---|
& | Address of | &x | Pointer to x |
* | Indirection | *p | The object or function that p points to |
[ ] | Subscripting | x[y] | The yth element of array x |
. | Struct/Union Member | x.y | The member named y in the structure or union x |
-> | Struct/Union Member by Reference |
p->y | The member named y in the structure or union that p points to |
We will cover pointers later in this tutorial. They are included here as a reference for the sake of completeness.