down

david wald wald-david at CS.YALE.EDU
Sun Dec 11 12:26:27 AEST 1988


In article <gables.352 at umigw.miami.edu> slores%gables.span at umigw.miami.edu (Stanislaw L. Olejniczak) writes:
>PLEASE don't flame for posting too simple a question.  I think the following
>SHOULD work, but will not even compile:
>       while ( (c = getchar) != EOF)
>               chcnt++ += (c == '\n');

Flame?  Us?  Never.

You can't assign to a ++ expression.


============================================================================
David Wald                                              wald-david at yale.UUCP
						       waldave at yalevm.bitnet
============================================================================



More information about the Comp.lang.c mailing list