Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site sdcc6.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!bellcore!decvax!ittvax!dcdwest!sdcsvax!sdcc6!ix269 From: ix269@sdcc6.UUCP Newsgroups: net.lang.c Subject: Re: Which is better? Message-ID: <1839@sdcc6.UUCP> Date: Wed, 19-Dec-84 05:04:42 EST Article-I.D.: sdcc6.1839 Posted: Wed Dec 19 05:04:42 1984 Date-Received: Fri, 21-Dec-84 00:36:54 EST References: <13900013@acf4.UUCP> Reply-To: ix269@sdcc6.UUCP (Jim) Organization: U.C. San Diego, Academic Computer Center Lines: 20 Keywords: Readability Summary: both forms are of the same speed as best as I can determine, but the latter form is much more readable at a glance (Note that this is a style judgement, and purely my own opinion). switch (whosit) { case 0: if (A) { dothis(); break; } elsethis(); break; case 1: if (B) { dothis(); } else { elsethis(); } break; }