i have tried a c program on array and pointers
#include<stdio.h>
int main()
{
int a[10], i;
for(i=0; i<10; i++)
{
a[i]=0;
}
fun(a,i);
}
fun(int *p, int i)
{
for (i=0; i<10; i++)
{
printf("%d\n", &*(p+i));
}
}
output is:
2752228
2752232
2752236
2752240
2752244
2752248
2752252
2752256
2752260
2752264
it prints addresses instead of array elements