Path: utzoo!attcan!uunet!yale!wald-david From: wald-david@CS.YALE.EDU (david wald) Newsgroups: comp.lang.c Subject: Re: down Message-ID: <45370@yale-celray.yale.UUCP> Date: 11 Dec 88 02:26:27 GMT References: Sender: root@yale.UUCP Reply-To: wald-david@CS.YALE.EDU (david wald) Organization: Yale University Computer Science Dept, New Haven CT 06520-2158 Lines: 15 In article slores%gables.span@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@yale.UUCP waldave@yalevm.bitnet ============================================================================