Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!rochester!rutgers!ames!ptsfa!nonvon!gilsys!mc68020 From: mc68020@gilsys.UUCP (Thomas J Keller) Newsgroups: comp.lang.c,misc.jobs.misc Subject: C test Message-ID: <1090@gilsys.UUCP> Date: Thu, 30-Jul-87 20:27:06 EDT Article-I.D.: gilsys.1090 Posted: Thu Jul 30 20:27:06 1987 Date-Received: Sat, 1-Aug-87 15:49:15 EDT Organization: Consequently Computers, Santa Rosa, Ca Lines: 26 Keywords: employer, test, C, weird Xref: mnetor comp.lang.c:3395 misc.jobs.misc:526 I recently posted regarding the nasty little pointer problem I encountered on a "programming test" popped on me by a job shop. Here is another of the little gems from that test. I just *LOVE* this one! Improve the following code fragment through reorganization: { if (A) { B; return; } if (C) { D; return; } if (E) { F; return; } G; return; } Cute, eh? The thing that's ironic about it is that this is typical of the quality and scope of the specifications I have been handed by employers for PRODUCTION coding! No wonder to me that there are so many buggy, slow, pain- in-the-arse programs out there! -- Tom : The conservatives always grouse about "Law & Order" when the liberals Keller : break the law...when the Reagan Admin. does it, it's PATRIOTISM! UUCP : {ihnp4,ames,qantel,sun,amdahl,lll-crg,pyramid}!ptsfa!gilsys!mc68020 BITNET : ptsfa!gilsys!mc68020@ames.com