An array is a data container which holds a fixed length of elements of homogeneous data type. It is used to store the elements of the same datatype.