Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!topaz!uwvax!husc6!harvard!bunny!mlr0 From: mlr0@bunny.UUCP (Martin Resnick) Newsgroups: net.lang.c Subject: C Compiler bug Message-ID: <501@bunny.UUCP> Date: Sat, 19-Jul-86 15:40:56 EDT Article-I.D.: bunny.501 Posted: Sat Jul 19 15:40:56 1986 Date-Received: Mon, 21-Jul-86 06:43:53 EDT Distribution: net Organization: GTE Laboratories, Waltham, MA. Lines: 18 Please try this code on your flavor of C compiler and see if you get the correct results: main() { int i; i = 8; i = i/2.5; printf("i= %d\n", i); i = 8; i /= 2.5; printf("i= %d\n", i); exit(0); } The correct answer is 3 in both cases, not 4.