Skip to main content
SWStudyWalks Search

Computer Science / Unit 7   CS 0360 short lesson, about 20 seconds

The Composite Type

Captions available

The idea

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.

In practice

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

Where people slip

Zero-indexing is convention with teeth.

Your place on the trail

Every lesson rests on earlier ones and opens later ones. Tap any to jump.

Something wrong in this lesson? Flag it  ·  Sources for Computer Science