defining array in c code example
Example 1: array loop in c
int i, array[5]= {1, 2, 3, 4, 5};
for(i=0 ; i<5 ; i++)
{
printf("%d", array[i]) ;
}
Example 2: how to initialize an array in c
double balance[5] = {1000.0, 2.0, 3.4, 7.0, 50.0};
Example 3: c language array
int array[5]={1,2,3,4,5};