An array is a single variable used to store elements of different datatypes so that they can be accessed through a single variable. It is an ordered list of values, and each value is referred to as an element, which is specified by an index. Knowing that these single
