Arrays are defined in the same manner as ordinary variable, except that each array name must be accompanied by the size specification.
General form of the array declaration is: -
Data type array_name[array size];
The compiler will entrap first element as array[0] position. The array element are introduce for 0 to [size-1].
The array initialization is done as given below
int a [5]={1,2,3,4,5};
// Program to print the element of Array #include <stdio.h> int main() { int i; int mark[] ={55,51,53,60}; for(i=0; i<4; i++); { display(& mark[i]); } display(int*n); { printf(" %d",*n); } }
55 51 53 60