Possible Duplicate:
Is array name a pointer in C?
I passed in an int * variable to a function which is defined as func(int var[]) and the compiler was complaining that passing in argument from incompatible pointer type. What’s the difference, or is there no difference at all?
The function declarations
R foo(T[])andR foo(T *)are identical for all typesT.Your error lies somewhere else.
(You can call
foowith either a pointer to aTor with the name of an array-of-Ts, since the latter decays to a suitable pointer during the call.)Example: