31st JAN 2022
Array
An array is a linear and homogeneous data structure. An array permits homogeneous data. It means that similar
types of elements are stored continuously in the memory and that too under one variable name
More than one element is stored in a sequence, so it is also called as a composite data structure.
Array Declaration
Declaration of a one-dimensional array can be done with data type first, followed by the variable name and
lastly the array size is enclosed in square brackets.
Example: int a[5];
One dimensional array ko declare kiya hai.
Data type array name[size];