DEV Community

Cover image for Arrays
Mehreen Mallick Fiona
Mehreen Mallick Fiona

Posted on

Arrays

An array is one kind of data structure where a collection of the same data type is stored. It has two distinct characteristics. They are:

Image description

  • Element: Each item stored inside the array is called element.

  • Index: Each location of an element stored inside an array holds a numerical position.

P.S:

  1. First value is always stored in the Oth index.
  2. In the case of a circular array, the first value can be at any index.

Top comments (0)