Array C Tutorial

An array is a data structure process multiple elements with the same data type.
Array elements are accessed using subscript.
The valid range of subscript is 0 to size -1.

#include 
main()
{
    int a[5];
    int i;
    for(i = 0;i<5;i++)
    {
       a[i]=i;
    }
    for(i = 0;i<5;i++)
    {
        printf("value in array %d\n",a[i]);
    }
}
value in array 0
value in array 1
value in array 2
value in array 3
value in array 4