Path: utzoo!attcan!uunet!husc6!think!ames!pasteur!ucbvax!UICVM!U23405 From: U23405@UICVM Newsgroups: comp.lang.c Subject: C IF statement efficiency... Message-ID: <8808171400.AA05122@ucbvax.Berkeley.EDU> Date: 13 Aug 88 02:12:46 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 15 I was wondering if, of the two following program fragments, which one would be compiled more efficiently by most C compilers: if (big > small) if (big > small) return big; return big; else return small; return small; In other words, does a compiler handle IF statements with RETURNs more or less efficiently than IF..ELSE statements with RETURNs (or with other statements besides RETURN, for that matter) ? Michael Steiner Email: U23405@UICVM