Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site elsie.UUCP Path: utzoo!watmath!clyde!burl!ulysses!harpo!seismo!rlgvax!cvl!elsie!ado From: ado@elsie.UUCP Newsgroups: net.lang.c,net.bugs.4bsd Subject: i = i * f vs. i *= f Message-ID: <866@elsie.UUCP> Date: Thu, 12-Apr-84 09:45:51 EST Article-I.D.: elsie.866 Posted: Thu Apr 12 09:45:51 1984 Date-Received: Sun, 15-Apr-84 08:22:08 EST Organization: NIH-LEC, Bethesda, MD Lines: 21 I compiled the following program with the 4.1bsd C compiler: main() { int i; i = 100; i = i * .2; printf("%d\n", i); i = 100; i *= .2; printf("%d\n", i); } I got this output: 20 0 Is this a bug? -- UUCP: decvax!harpo!seismo!rlgvax!cvl!elsie!ado DDD: (301) 496-5688