|
Answer» 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 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; 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 VishuOne post per question please. I duplicated the original and am MOVING this to the correct forum.Please LET me know the details
|