Simple C Puzzle

utzoo!decvax!harpo!floyd!cmcl2!philabs!sdcsvax!laman utzoo!decvax!harpo!floyd!cmcl2!philabs!sdcsvax!laman
Thu Dec 30 01:16:27 AEST 1982


The a++ gets swallowed by the unintentional comment that was started in
the line

a = b/*p;

That "/*" is all it takes.  That can be really mean to catch.  The moral
of the story is not to be afraid to use spaces (You may also want to hope
modifications are added to detect "/*" inside "comments".)

					Mike Laman
					sdcsvax!laman



More information about the Comp.lang.c mailing list