Array Means Both Order and Display

An array is an ordered arrangement. The word once meant to prepare troops for battle, and computing borrowed it for ordered data.

An array is an ordered arrangement, or an impressive display. Its oldest English sense is military: to array troops was to draw them up in order of battle, and *battle array* preserves it. From ordered ranks the word moved to any ordered set, and computing took it for a numbered list of values. It also means to dress formally, as in *arrayed in silk*.

Word forms

FormWordExample
NounarrayA wide array.
PluralarraysTwo arrays.
VerbarrayArray the pieces.
PastarrayedArrayed for battle.
RelateddisarrayIn complete disarray.

Array in programming

Anglo-French *arraier*, to put in order, from a Germanic root meaning to prepare. English has used it since the 1300s, and the computing sense dates from the 1960s.

Why are arrays indexed from zero?

Because the index originally expressed an offset from the start of the block of memory. The first element is zero positions along.

What does disarray mean?

Disorder. It is the direct negative of the older sense of array, meaning proper arrangement.

Sources

WhatsAppXTelegramFacebook

More 5-letter words