Pointer to an array (c programming)

Hi folks,

I am confuse on this topic. What is relevant of pointer to an array.
I thought that array itself is a pointer. Which keep track of it's memory addresses.
If we print it using %u it will print the address and if we use %d it will print the value in it.
Example
#include<stdio.h>
void main()
{
int s[2][2] = { {12,34},{56,78}};
int (*p)[2]; /* please explain this with more accuracy*/
int i,j*pint; /* please explain this with more accuracy*/
for (i=0;1<2;i++)
{ p = &s[i];
pint = (int*)p;
printf("/n");
for(j=0;j<2;j++) printf("%d",*(pint+j));
}
}

output

12 34
56 78

Thank you please do explain it with Lehman language. I would be greatfull.

Regards
Vishu
Topic archived. No new replies allowed.