Programming ConceptsLesson 6Free preview
Arrays
This lesson is part of Intro to Programming · All levels
Summary
This lesson discusses arrays as data structures that store many values of the same type in one variable called. Each element is accessed via an index that usually starts at 0, making it easy to manipulate the data in large numbers. An array can also contain an entire set of data at once and be accessed through repetition.
Key points
- The array holds many values of the same type in one container
- Elements are accessed via indexes, generally starting from 0
- The length of the array can be checked to determine the iteration limit
- Loops are very often used to access all the elements of an array.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.