Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!lll-crg!caip!princeton!allegra!ulysses!gamma!pyuxww!mruxc!mruxe!cgw From: cgw@mruxe.UUCP (C Waldman) Newsgroups: net.lang.c Subject: op= construction Message-ID: <108@mruxe.UUCP> Date: Mon, 9-Jun-86 11:22:21 EDT Article-I.D.: mruxe.108 Posted: Mon Jun 9 11:22:21 1986 Date-Received: Thu, 12-Jun-86 01:26:15 EDT Organization: Bell Communications Research, Piscataway, NJ Lines: 16 Quick question- In a loop, an array element is incremented, then the array index is advanced to the next element. I recently coded this with .... 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.