extern char *foo vs. extern char foo[]

Karl Heuer karl at haddock.ima.isc.com
Thu Jun 14 04:49:42 AEST 1990


In article <1990Jun13.030910.11593 at sharkey.cc.umich.edu%sevihc> reso%sevihc at sharkey.cc.umich.edu (Dennis Reso) writes:
>The reason you can't take the address of [an array] as in "foo(&a)" [is that]
>you did not request a storage location to hold the address...

Wrong.  I just finished debunking this myth; see <16804 at haddock.ima.isc.com>
earlier in this same thread.

Karl W. Z. Heuer (karl at ima.ima.isc.com or harvard!ima!karl), The Walking Lint



More information about the Comp.lang.c mailing list