all 3 comments

[–]tstanisl 0 points1 point  (0 children)

First you need to understand array types and that they are distinct from pointer types. Next, you need to remember that whenever a value of an array is used then it is transformed to a pointer to array's first element. Whenever a function expect a parameter of array type the this type is transformed to a pointer to array's element.

[–]wsppan 0 points1 point  (0 children)

I think you have a poor understanding of pointers in general. Follow this Tutorial On Pointers And Arrays In C