C Programming Memory Addressing Operators

Last modified by Microchip on 2023/11/09 09:06

OperatorOperationExampleResult
&Address of&xPointer to x
*Indirection*pThe object or function that p points to
[ ]Subscriptingx[y]The yth element of array x
.Struct/Union Memberx.yThe member named y in the structure or union x
->Struct/Union Member
by Reference
p->yThe 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.