Article View: comp.std.c
Article #5132non-repeatable bug? [Re: nonportable code or incorrect compilers?]
From: ken Ken Yap
Date: Fri, 24 Jun 1988 23:55
Date: Fri, 24 Jun 1988 23:55
25 lines
905 bytes
905 bytes
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
Technical Details
Message-ID:
<10852@sol.ARPA>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mandrill!gatech!udel!rochester!daemonShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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