Friday, 7 August 2015

Display Array Elements with Address

Display Array Elements with Address

#include<stdio.h>
#include<conio.h>
void main()
{
int arr[5]= {10,20,30,40,50};
int i;
clrscr();
printf("\n");
for(i=0;i<5;i++)
{
printf("a[%d] :- Value :- %d  and Address :- %u \n",i,arr[i],&arr[i]);
}
getch();

}

Output :-










Back to C Language Programs

No comments:

Post a Comment