Program to define an array in c:
Write a program to define an array and print the value of array.
void main()
{
int a[10]={0,11,21,34,44,75,46,57,88,89},i,j,k;
clrscr();
printf("a=%d\n",a);
for (k=0;k<=9;k++)
{
printf("*(a+%d)=a[%d]=%d\n",k,k,*(a+k));
printf("*a+%d=%d\n",k,*a+k);
}
getch();
}