liveBook · Manning

Array parameter

An array parameter is a C function parameter declared with array syntax that is adjusted to a pointer to its element type.

How 2 Manning books explain it

Modern C, Third Edition

An array parameter is a function parameter declared with array notation whose array-bound information is adjusted or lost when used in a function definition or call.

How it is used
Uses array notation to specify function interfaces that operate directly on caller-provided arrays.
How deep it goes
Explains pointer rewriting and multidimensional bounds, but defers the underlying mechanism until pointers are introduced.
Examples
Demonstrates element swapping, array copying, matrix multiplication, equivalent pointer declarations, and incompatible pointer-to-pointer matrices.
What you can do after
Apply it via C function interfaces that access one-dimensional or multidimensional arrays without expecting array-value copying.

Read how Modern C, Third Edition explains array parameter →

Modern C

An array parameter is a function parameter declared with array syntax whose array type is adjusted for parameter passing and whose argument is passed as a pointer to the array's first element.

How it is used
Explains how functions receive arrays while preserving readable indexing and direct access to caller-owned elements.
How deep it goes
Defines pointer rewriting, lost innermost dimensions, and multidimensional equivalence, but defers broader pointer mechanics.
Examples
Uses an element-swapping function, string-function pointer declarations, array copying, and matrix multiplication.
What you can do after
Apply it by declaring array-shaped interfaces, choosing equivalent pointer notation, and handling multidimensional parameters correctly.

Read how Modern C explains array parameter →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.