More on pointers/arrays: Function Arguments

P. T. Withington ptw at vaxine.UUCP
Sat Apr 14 01:30:31 AEST 1984


...*s and s[] equivalent as function arguments...

>From a stylistic point of view I was always lead to believe the former
was preferable when you intended to s++.
Anyone care to expand on this concept as it applies to argv?

**argv                  Preferred when you intend to argv++
*argv[]                 Preferred when you will argv[i]
argv[][]                Hm.



More information about the Comp.lang.c mailing list