Fiveable
Fiveable

Array

Definition

An array is a data structure that stores a fixed-size, ordered collection of elements of the same type. Elements in an array are accessed using their indices.

Analogy

Imagine an ice cube tray with multiple compartments. Each compartment can hold one ice cube, and you can access each ice cube by referring to its specific compartment number.

Related terms

Element: A single item or value stored within an array.

Indexing: The process of accessing individual elements within an array using their indices.

Multi-dimensional Array: An array with more than one dimension, such as rows and columns in a table-like structure.

collegeable - rocket pep

Are you a college student?

  • Study guides for the entire semester

  • 200k practice questions

  • Glossary of 50k key terms - memorize important vocab



© 2024 Fiveable Inc. All rights reserved.

AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.


© 2024 Fiveable Inc. All rights reserved.

AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.