Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!necntc!ima!haddock!karl From: karl@haddock.ISC.COM (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: Teaching const Message-ID: <3300@haddock.ISC.COM> Date: 2 Apr 88 07:57:14 GMT References: <7712@apple.Apple.Com> <3034@haddock.ISC.COM> <613@mcrware.UUCP> <3117@haddock.ISC.COM> <3938@chinet.UUCP> <3241@haddock.ISC.COM> <4381@chinet.UUCP> <10203@steinmetz.steinmetz.ge.com> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Boston Lines: 11 In article <10203@steinmetz.steinmetz.ge.com> davidsen@kbsvax.steinmetz.UUCP (William E. Davidsen Jr) writes: >Could someone give me a good method to use when teaching students C, >such that they will be able to remember the syntax of > pointer to {type} const > - vs - > const pointer to {type} If you write "{type} const" rather than "const {type}", then "const" follows pretty much the same rules as "*". You can use whatever method you use to distinguish "pointer to function" from "function returning pointer". Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint