Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!purdue!haven!uvaarpa!mcnc!decvax!ima!mirror!prism!ly From: ly@prism.TMC.COM Newsgroups: comp.lang.c Subject: Re: Bug in Microsoft C 5.1 Message-ID: <236100022@prism> Date: 9 Sep 89 14:59:00 GMT References: <104322@<1989Sep7> Lines: 13 Nf-ID: #R:<1989Sep7:-10432200:prism:236100022:000:506 Nf-From: prism.TMC.COM!ly Sep 9 10:59:00 1989 /* Written 6:43 am Sep 7, 1989 by mapmef@gdr.UUCP in prism:comp.lang.c */ /* ---------- "Bug in Microsoft C 5.1" ---------- */ When I run this instead of printing out 0,1,2,3,4,5 etc. It prints out 0,1,1,1,1,1 etc. I think there is a bug in the compiler I am using : Micorsoft's 5.1 . Can anyone confirm/deny/reproduce this? Matthew Fletcher, University of Bath, England /* End of text from prism:comp.lang.c */ I compiled and ran your program using Microsoft 5.1. The output is 0, 1, 2, 3, etc.