common errors in C text

Kevin Braunsdorf ksb at j.cc.purdue.edu
Thu Apr 7 08:27:37 AEST 1988


I have heard many net.folk out there talk about how many times the
compare vs assignment in a conditional has bitten them; what I'd like
to ask of you now is "What *other* common errors do you make/see?"

One I see:
	....
	if (someconst == somefunc());
		statement();
	....

[ the ';' on the end of the if statement ]

Please send mail to "pur-ee!ksb" or "ksb at j.cc.purdue.edu" and I will
post a summary.		[ Other languages are OK, if you'd like. ]

kayessbee



More information about the Comp.lang.c mailing list