Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!rutgers!clyde!cbosgd!cwruecmp!hal!oxtrap!b-tech!metavax!umich!cja From: cja@umich.UUCP (Charles J. Antonelli) Newsgroups: comp.lang.c Subject: Re: weird c code/ c test Message-ID: <130@umich.UUCP> Date: Sat, 1-Aug-87 18:12:18 EDT Article-I.D.: umich.130 Posted: Sat Aug 1 18:12:18 1987 Date-Received: Sun, 9-Aug-87 21:41:03 EDT References: <1089@gilsys.UUCP> Reply-To: cja@crim.eecs.umich.edu.UUCP (Charles J. Antonelli) Organization: EECS, University of Michigan (Ann Arbor) Lines: 18 Keywords: test, employment, weird, code, pointers Summary: fix and comment In article <1089@gilsys.UUCP> mc68020@gilsys.UUCP writes: >See if you can determine the output of this program >without actually compiling it: > > ["pointer stew" program deleted] Well, if you replace `****cpp' with `***cpp' you should get what the author intended. As far as measuring someone's ability is concerned, passing this "test" demonstrates some elementary knowledge of pointers, the relationship between pointers and arrays, and p. 48 of K&R. There's a lot more to C software development than that, folks. Charles J. Antonelli Phone: 313-936-9362 44 Adv Tech Laboratories Bldg Internet: cja@crim.eecs.umich.edu The University of Michigan Uucp: {umix,mibte}!umich!eecs.umich.edu!cja Ann Arbor, MI 48109-2210