Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site utah-gr.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!godot!harvard!seismo!utah-cs!utah-gr!thomas From: thomas@utah-gr.UUCP (Spencer W. Thomas) Newsgroups: net.lang.c Subject: Re: Which is better? Message-ID: <1269@utah-gr.UUCP> Date: Mon, 10-Dec-84 02:53:17 EST Article-I.D.: utah-gr.1269 Posted: Mon Dec 10 02:53:17 1984 Date-Received: Wed, 12-Dec-84 03:29:18 EST References: <13900013@acf4.UUCP> Reply-To: thomas@utah-gr.UUCP (Spencer W. Thomas) Organization: Univ of Utah CS Dept Lines: 27 Summary: In article <13900013@acf4.UUCP> greenber@acf4.UUCP writes: >Which (in general!) generates "better" code within a switch or loop? > > if (condition) > { > code.... > break; > } > other code.... > break; >-------------------------------OR--------------- > if (condition) > { > code.... > } > else > { > other code..... > } > break; Which generates code that is easier to read and modify!? -- =Spencer ({ihnp4,decvax}!utah-cs!thomas, thomas@utah-cs.ARPA) <<< Silly quote of the week >>>