Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!sun-barr!decwrl!decvax!ima!haddock!karl From: karl@haddock.ima.isc.com (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: address of function Summary: Correction Message-ID: <13702@haddock.ima.isc.com> Date: 14 Jun 89 18:14:49 GMT References: <2700@solo8.cs.vu.nl> <370@msor0.UUCP> <13685@haddock.ima.isc.com> <2750@piraat.cs.vu.nl> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Boston Lines: 13 As has already been pointed out, my previous article in this thread had a typo, reversing the names "this" and "foo" in the last paragraph. I guess I should have followed my earlier hunch and renamed the variables, thus: | int a[100], (*pa)[100] = &a; |is analogous to | int f(void), (*pf)(void) = &f; |This particular symmetry holds only if the explicit "&" is used. Writing |"f" without the ampersand yields the same as "&f", but writing "a" |without the ampersand yields "&a[0]", which is not the same as "&a". |(Though they will compare equal if brought to a common type.) Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint