suppose we have a list of employee and we want to store it . if we are storing it with multiple variable then it will be verry difficult but if we use array then we make 1 array with multiple value, thats whay array is important.
example: int a=[7];
an array is an ordered list of value.
| [0] | [1] | [2] | [3] | [4] | [5] | [6] |
|---|
| 10 | 20 | 30 | 40 | 50 | 60 | 70 |
|---|
types of array