Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!harvard!seismo!rochester!ur-tut!aptr From: aptr@ur-tut.UUCP (The Wumpus) Newsgroups: net.lang.c Subject: Re: Fun with * and & Message-ID: <454@ur-tut.UUCP> Date: Tue, 24-Jun-86 13:23:24 EDT Article-I.D.: ur-tut.454 Posted: Tue Jun 24 13:23:24 1986 Date-Received: Fri, 27-Jun-86 03:27:51 EDT References: <487@cubsvax.UUCP> <1250@ncoast.UUCP> Reply-To: aptr@ur-tut.UUCP (The Wumpus) Organization: Univ. of Rochester Computing Center Lines: 24 In article <1250@ncoast.UUCP> allbery@ncoast.UUCP (Brandon Allbery) writes: >Expires: > >Quoted from <487@cubsvax.UUCP> ["Re: C'mon, guys! (Really, pointer pedagogy)"], by peters@cubsvax.UUCP... >+--------------- >| Just a quick remark. When I was learning C, I understood that "*pi" meant "the >| contents of pi," but somehow had difficulty conceptualizing why the declaration >| "int *pi;" declares pi as a pointer to an int; that is, I knew it was a >| convention I had to memorize, but it didn't seem mnemonic to me. Then, about >| a month ago, revelation!: read this as "the contents of pi is an integer;" >| which implies, "pi is that which contains (or points to)" an integer. Somehow >| it made thinking about the declarations easier. It's occurred to me that maybe >| everyone else in the world sees this from day 1, but for us dumb folks, having >| this reading pointed out would probably make the learning process easier.... >+--------------- > >Easy: Use the Algol 68 method. If you have worked with Forth, the idead of pointers to variable locations and having to give scanf an address to put the returned value into is natural because variables in Forth are really just address pointers. :-) The Wumpus