Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!tcdcs!dce.ie!ch From: ch@dce.ie (Charles Bryant) Newsgroups: comp.lang.c Subject: Re: bug? in turbo c++ Message-ID: <1991Mar10.153011.499@dce.ie> Date: 10 Mar 91 15:30:11 GMT References: <1991Mar6.171424.17409@nntp-server.caltech.edu> <1991Mar6.173733.430@unhd.unh.edu> Organization: Datacode Communications Ltd, Dublin, Ireland Lines: 17 In article <1991Mar6.173733.430@unhd.unh.edu> rg@msel.unh.edu (Roger Gonzalez) writes: >main() >{ > int i; > long j; > > for (i = 0; i < 1000; i++, j = i*2) > printf("oh crud: %x %10d %x\r", i, j, i); >} Surely I am not the only person to notice that j is used before being set? (On the first pass only). Maybe our newsfeed is just clogged. -- Charles Bryant (ch@dce.ie) -- If you like the opinions expressed in this message, they may be available for rent - contact your local sales office. Low interest deals available.