Skip to main content

The Composite Type

This video presents the same text shown beside it, spoken and on screen. It adds nothing the text does not say.

State

A composite data type consists of multiple primitive types as building blocks — the array being the strict case: same type throughout, uniform element length, indexed from zero.

Show

A gradebook column of thirty scores is one array: thirty same-shaped cells, numbered from zero.

Watch for

Zero-indexing is convention with teeth.