Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • @Quentin sadly, the dupe won't address the casting part required in printf() in this case. Commented Jul 2, 2015 at 11:10
  • 1
    &a[0] a and &a all have the same address but of different types Commented Jul 2, 2015 at 11:10
  • @Gopi a is the same as &a[0] after decaying. Commented Jul 2, 2015 at 11:11
  • p=&a fires a warning (but works). Why throws p=a not a warning since int * is not int [4]. Is int (*)[4] similar to a pointer to pointer type ? Commented Jul 2, 2015 at 12:29
  • @mr.wolle I've updated my answer with a link, please check that. :-) Commented Jul 2, 2015 at 12:32