C programming syle poll

zben at umcp-cs.UUCP zben at umcp-cs.UUCP
Wed Apr 25 05:51:55 AEST 1984


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 at umd2.ARPA



More information about the Comp.lang.c mailing list