Code:#include<stdio.h> #include<conio.h> void main() { int a[20],i,n,*j; clrscr(); printf("Enter 5 elements\n "); for(i=0;i<5;i++){ scanf("%d",&a[i]); j=&a[i]; } for(i=0;i<5;i++){ printf("Elelent %d ",a[i]); printf("address is %u\n",j); } getch(); }
i know this code prints only last address,
please rectify to print each value