Program

#include<stdio.h>
int main()
{
    int a[5]={10,20,30,40,50},i;
    for(i=0;i<5;i++)
        printf("a[%d]=%d\n",i,a[i]);
    return 0;
}

Output

a[0] = 10
a[1] = 20
a[2] = 30
a[3] = 40
a[4] = 50

Leave a Reply

Your email address will not be published. Required fields are marked *