Skip to content
UPEEC

Array Pointers

A pointer to a whole array, e.g. `int (*p)[4]` — different from an array of pointers `int *p[4]`.

Intermediate
Comments 0

Incrementing p moves by a whole row (4 ints) — used with 2-D arrays. Read declarations from the name outward ("clockwise/spiral rule").

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.