Skip to content

Address of Operator

IsaacShelton edited this page Mar 21, 2022 · 1 revision

& Operator (Address-of)

The & operator is used for obtaining the address of a location in memory.

Example 1

&my_variable

Example 2

&my_array[4]

Other Uses

The & operator also has other uses, mainly being the bitwise-and operator and the function-address operator.

Clone this wiki locally