Data structures
x

Why programs need data structures

Why programs need data structures

Comparison diagram showing a one-dimensional array of scores with indexes, a two-dimensional seating grid with seats[1,2] labelled, and a car record with named fields.

A variable stores one value, but most programs need collections of related values. A data structure is the way a program organises that data so it can be stored, accessed, and updated sensibly.

Data structures Lesson

  1. GCSE
  2. /Computer Science
  3. /Data structures