Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!husc6!hao!noao!mcdsun!fnf From: fnf@mcdsun.UUCP (Fred Fish) Newsgroups: comp.lang.c,misc.jobs.misc Subject: Re: weird c code/ c test Message-ID: <346@mcdsun.UUCP> Date: Thu, 30-Jul-87 18:07:01 EDT Article-I.D.: mcdsun.346 Posted: Thu Jul 30 18:07:01 1987 Date-Received: Sat, 1-Aug-87 12:06:47 EDT References: <1089@gilsys.UUCP> Reply-To: fnf@mcdsun.UUCP (Fred Fish) Organization: Motorola Microcomputer Division Lines: 23 Keywords: test, employment, weird, code, pointers Xref: mnetor comp.lang.c:3388 misc.jobs.misc:524 In article <1089@gilsys.UUCP> mc68020@gilsys.UUCP (Thomas J Keller) writes: > I just had a strange experience today. I went to see a head hunter about >an opening she wanted me to consider, and she popped this "C test" on me. >Most of it was pretty straight forward, but the last question on the test >was a **BITCH**. See if you can determine the output of this program >without actually compiling it: > [program deleted] Yes, if you could have answered this you would have definitely been a 100% certified C wizard, probably also a certified psychic as well. I finally gave up and cheated by compiling and running it on my Sun and this is what it printed: POINTINT printf.c 1.1 86/07/07 SMIPOINT Of course, after I made a rather minor change to the code it printed something a little less cryptic... :-) :-) -Fred -- = Drug tests; just say *NO*! = Fred Fish Motorola Computer Division, 3013 S 52nd St, Tempe, Az 85282 USA = seismo!noao!mcdsun!fnf (602) 438-3614