An Array is a group of similar types of elements. It has a contiguous memory location. It makes the code optimized, easy to traverse and easy to sort. The size and type of arrays cannot be changed after its declaration.
Arrays are of two types:
One-dimensional array: One-dimensional array is an array that stores the elements one after the another.
Syntax:
data_type array_name[size];
Multidimensional array: Multidimensional array is an array that contains more than one array.
Syntax:
data_type array_name[size];