Arrays

Cards (7)

  • Arrays are used to store multiple Data values
  • An array is a data structure that can store a collection of data values all under one name
  • Each piece of data in an array is called an element - each element can be accessed using it position (or index) in the array
  • When are arrays most helpful?
    When you have lots of related data that you want to store and it doesn't make sense to use separate variables
  • Some languages require you to declare arrays before you use them
  • One-Dimensional Arrays are like lists
  • Different languages have different ways to create and update arrays