op precedence in C

scott scott
Sat Oct 23 16:30:33 AEST 1982

"Using logical instead of bitwise AND in if() statements is something
which must be bred out of C programmers."

There are very good reasons to use bitwise ANDs.  For example

	c = getchar();
	if (c & 0177 == '\004')

seems like it *should* mask the parity bit off of the character
and then compare it with a ctrl-d.

	Scott Deerwester
	Purdue University Libraries

P.s. My apologies if this is the 386th response to this letter.

More information about the Comp.lang.c mailing list