i wanna know what is the difference between
void fct1(int *p)
and
void fct1(int p[])
i know that both are pointers but are there any differences
There is absolutely no difference when used as a function parameter like that. The compiler treats both forms identically.
There is no difference. For completeness, here's what the standard says:
C99 standard 6.7.5.3 section 7
A declaration of a parameter as ‘‘array of type’’ shall be adjusted to ‘‘qualified pointer to type’’, ...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With