Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mandrill!gatech!udel!rochester!daemon From: ken (Ken Yap) Newsgroups: comp.std.c Subject: non-repeatable bug? [Re: nonportable code or incorrect compilers?] Message-ID: <10852@sol.ARPA> Date: 24 Jun 88 23:55:19 GMT Sender: daemon@cs.rochester.edu Lines: 25 I can't repeat your problem. What OS version have you? What compilers? Script started on Fri Jun 24 19:49:06 1988 cursa.cs.rochester.edu% cat y.c #define DEFCONST 1.05 main() { int count = 800; printf("count is %d, ", count); count *= DEFCONST; printf("now %d\n", count); } cursa.cs.rochester.edu% cc -o y y.c cursa.cs.rochester.edu% ./y count is 800, now 840 cursa.cs.rochester.edu% script done on Fri Jun 24 19:49:30 1988 Cursa is a Sun 3/50 running SunOS 3.4. On a Vax 11/750 running BSD 4.3 it gives count is 800, now 839 Ken