Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!mcnc!ncsu!uvacs!edison!steinmetz!davidsen From: davidsen@steinmetz.UUCP (Davidsen) Newsgroups: net.lang.c Subject: Re: op= construction Message-ID: <804@steinmetz.UUCP> Date: Tue, 17-Jun-86 12:35:58 EDT Article-I.D.: steinmet.804 Posted: Tue Jun 17 12:35:58 1986 Date-Received: Thu, 19-Jun-86 19:41:48 EDT References: <108@mruxe.UUCP> Reply-To: davidsen@kbsvax.UUCP (Davidsen) Organization: GE CRD, Schenectady, NY Lines: 26 In article <108@mruxe.UUCP> cgw@mruxe.UUCP (C Waldman) writes: > Quick question- > .... > total[i++] += f; > .... > > After a couple of "Memory fault- core dumped" messages, I realized > that i is getting incremented twice. I broke it into two lines and > everything was ok, but I'm wondering why this construction doesn't > work. I tried it on a VAX, a Sun, and XENIX, looking at the code with the -S option. They all work as desired. Therefore I believe that either your program has another problem or (most likely) your compiler is broken. Please let me know (or post) what you find, and which compiler/machine you are using. -- -bill davidsen ihnp4!seismo!rochester!steinmetz!--\ \ unirot ------------->---> crdos1!davidsen chinet ------/ sixhub ---------------------/ (davidsen@ge-crd.ARPA) "Stupidity, like virtue, is its own reward"