op precedence in C

utzoo!decvax!wivax!linus!sch utzoo!decvax!wivax!linus!sch
Fri Oct 22 14:58:07 AEST 1982

The question about statements like:
	if(x & a == b)
is not a difficulty with precedence in the C language.
The problem is that you are using & instead of &&.  Using logical instead of
bitwise AND in if() statements is something which must be bred out of
C programmmers.

			S. Hemminger

More information about the Comp.lang.c mailing list