Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site umcp-cs.UUCP Path: utzoo!watmath!clyde!burl!ulysses!harpo!seismo!rlgvax!cvl!umcp-cs!chris From: chris@umcp-cs.UUCP Newsgroups: net.lang.c Subject: Re: [C programming syle poll] conditionals Message-ID: <6765@umcp-cs.UUCP> Date: Thu, 26-Apr-84 02:23:01 EST Article-I.D.: umcp-cs.6765 Posted: Thu Apr 26 02:23:01 1984 Date-Received: Fri, 27-Apr-84 04:10:52 EST References: <137@iwlc6.UUCP> <2565@ncsu.UUCP> Organization: Univ. of Maryland, Computer Science Dept. Lines: 15 K&R, p.41: ... relational expressions like i > j and logical expressions connected by && and || are defined to have value 1 if true, and 0 if false. So any compiler that generates -1 or 0 for "y == x" is just plain wrong. I won't argue about which style is "better"; that's a personal decision, as far as I'm concerned. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci (301) 454-7690 UUCP: {seismo,allegra,brl-bmd}!umcp-cs!chris CSNet: chris@umcp-cs ARPA: chris@maryland