Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!rochester!rutgers!husc6!bu-cs!m2c!applix!scott From: scott@applix.UUCP (Scott Evernden) Newsgroups: comp.lang.c,misc.jobs.misc Subject: Re: C test Message-ID: <568@applix.UUCP> Date: Tue, 4-Aug-87 10:41:07 EDT Article-I.D.: applix.568 Posted: Tue Aug 4 10:41:07 1987 Date-Received: Thu, 6-Aug-87 02:00:17 EDT References: <1090@gilsys.UUCP> Reply-To: scott@applix.UUCP (Scott Evernden) Organization: APPLiX Inc., Westboro MA Lines: 16 Keywords: employer, test, C, weird Xref: mnetor comp.lang.c:3462 misc.jobs.misc:536 In article <1090@gilsys.UUCP> mc68020@gilsys.UUCP (Thomas J Keller) writes: >Improve the following code fragment through reorganization: >{ > if (A) { B; return; } > if (C) { D; return; } > if (E) { F; return; } > G; return; >} An improvement?: { A ? B : C ? D : E ? F : G; } which generates exactly the same code on my sun. -scott