Which is better?
Spencer W. Thomas
thomas at utah-gr.UUCP
Mon Dec 10 17:53:17 AEST 1984
In article <13900013 at acf4.UUCP> greenber at 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 at utah-cs.ARPA)
<<< Silly quote of the week >>>
More information about the Comp.lang.c
mailing list