Write a program to enter the elements in a one dimensional array | Arrays And Strings | Basic Programming of c

  Basic Programming of c 




List of Experiments 


Arrays And Strings

Write a program to enter the elements in a one dimensional array


-----------------------------------------------------------------------------------

#include<stdio.h>

#include<conio.h>

void main()

{

int i;

int a[5]={22,34,55,66,77};

for(i=0;i<=4;i++)

{

printf("%d \n",a[i]);

}

getch();

}

-----------------------------------------------------------------------------------

Copy code from here:-