Mail Archives: djgpp/1997/06/13/00:25:06
Gil Myers wrote:
> They are both the same thing. The array syntax is interchangable with
> pointer
> arithmetic. Or at least should be if the compiler in question follows
> the
> language
> at all.
Be careful with such statements. Arrays and pointers are _not_ the same
thing. In function arguments, however, an argument of array type is
silently treated as an argument of pointer type. So char **argv and char
*argv[] are precisely the same.
That only applies to function arguments, however; arrays and pointers are
different entities.
--
Erik Max Francis, &tSftDotIotE / email / max AT alcyone DOT com
Alcyone Systems / web / http://www.alcyone.com/max/
San Jose, California, United States / icbm / 37 20 07 N 121 53 38 W
\
"Covenants without the sword / are but words."
/ Camden
- Raw text -