program to define an array in cwrite a program to


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();

}

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: program to define an array in cwrite a program to
Reference No:- TGS0174862

Expected delivery within 24 Hours