Quiz for Novice to Intermediate C Users

k.laux rkl at ahuta.UUCP
Fri Apr 19 03:19:19 AEST 1985


REFERENCES:  <646 at dataio.UUCP>

	Pretty slick, although misleading. This little program most
graphically demonstrates that one should ALWAYS PUT SPACES AROUND
OPERATORS.

	BTW, the answer is that foo prints 10 because the '/*' in
'a=b/*p;' is interpreted as the start of a comment; the preprocessor
is the culprit because it looks for comments to strip them out before
the compilation phase (ie order of precedence does not apply).

				R. Kevin Laux
				Software Vendor Tech Support
				ATTIS Lincroft
				ahuta!rkl



More information about the Comp.lang.c mailing list