bug? in turbo c++

Charles Bryant ch at dce.ie
Mon Mar 11 01:30:11 AEST 1991


In article <1991Mar6.173733.430 at unhd.unh.edu> rg at 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 at 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.



More information about the Comp.lang.c mailing list