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!linus!vaxine!wjh12!genrad!decvax!harpo!seismo!rlgvax!cvl!umcp-cs!zben From: zben@umcp-cs.UUCP Newsgroups: net.lang.c Subject: Re: C programming syle poll Message-ID: <6741@umcp-cs.UUCP> Date: Tue, 24-Apr-84 14:51:55 EST Article-I.D.: umcp-cs.6741 Posted: Tue Apr 24 14:51:55 1984 Date-Received: Thu, 26-Apr-84 01:21:27 EST References: <137@iwlc6.UUCP> Organization: Univ. of Maryland, Computer Science Dept. Lines: 10 I always use the construct: x = (y==5) for this. The (redundant) parentheses highlight the fact that the comparison operator results in a boolean expression. I don't mind the few microseconds it takes the compiler to skip the parens... -- Ben Cranston ...seismo!umcp-cs!zben zben@umd2.ARPA