a
Indexes: 0 1 2 3 4
Total size of the array "a" = 10 bytes
Note:- The number of bytes of memory that has to be
allotted for the array = the product of number of
variables and number of bytes for each variable for
that data type.
If an array a contains n elements i.e., a[n], then
the index will starts with 0 and ends with n-1. To
refer the 1st variable the index is 0 and to refer the
nth variable the index is n-1.
To refer a required variable in the array:
Syntax: array name[index];
To refer the first variable the index is 0 and to refer
the 5th the index is 4 etc
Example: a[0],a[1],a[2] and so on.
Two Dimensional Arrays
-------------------------------