Array initialization :
The array initialization is done as given belowint a[5]={1,2,3,4,5};
Here five elements are stored an array 'a'.The array elements are stored sequentially in separate memory locations.
Then question arises how to call individually to each element from this bunch of integer elements. Reading of array elements are begin from '0'.Array elements are called by array names followed by the element numbers.
The given table explains the same
Calling Array Elements
a [0] refers to 1st
element i.e. 1
|
a [1] refers to 2st
element i.e. 2
|
a [2] refers to 3st
element i.e. 3
|
a [3] refers to 4st
element i.e. 4
|
a [4] refers to 5st
element i.e. 5
|