Data structures

Cards (5)

  • A data structure is a temporary structure which are held in main memory that hold multiple data items while a program is running.
  • Array
    An ordered arrangement of data items with the same data type. The are accessed by referencing their arrangement in the array. A two dimensional array is arrays within arrays.
  • An array is a series of memory locations each of which hold a single item of data, but with each box sharing the same name. All data in an array must be the same data type. All arrays start at position zero.
  • Record
    A data structure that allows us to group together data of different data types. Each item in a record is called a field. Each field has its own data type.
  • Parameter
    A piece of data that we can pass into a subroutine when it's called. This allows us to give the subroutine specific data which then can be used within the subroutine.