Arrays

Some of the properties of an Array are:

  • A fixed number of contiguous storage elements all of the same data type.

  • Each element can be located by its index.

  • Size is equal to the number of elements.

  • The size of the array is fixed + elements are of the same type => Easy to calculate the amount of memory needed to store.

Element address = base address of the array + (offset number *number of bytes)


Types of Arrays: