Memory Address and Content

content

Memory is used to store data, address, and code.

Variable

variable

If v is a normal variable, &v is the address of v and v is the content of v.

Data - Array

array

If a[i] is a variable in an array a[], &a[i] is the address of a[i] and a[i] is the content of a[i].

Code - Function

function

If f() is a function, &f is the address of f(), and the content of f() is code.

Address - Pointer

pointer

If p is a pointer variable, &p is the address of p and p is the content of p.

Pointer to Nothing

pointer to nothing

Pointer to Variable

pointer to variable

Pointer to Array

pointer to array

Pointer to Function

pointer to function

Pointer to Pointer to Variable

pointer to pointer to variable