[wplug] C code problem

Henry Umansky hmust2+ at pitt.edu
Wed Oct 23 16:05:30 EDT 2002


Can someone explain to me why on my machine the printout value for i is 
different.  I compile this with gcc version 2.95.3 20010315.  Can someone 
else try compiling this and running it and keep an eye on the two values 
that are printed out.

#include <stdio.h>

int main() {
int i;

for(i=0;i<100000000000;i++)
        if(i%100000==0)
        printf("%d : %d\r", i, i);
}


Henry Umansky
University of Pittsburgh
Systems/Programmer III
www.pitt.edu/~hmust2
hmust2 at pitt.edu
(412)624-4357




More information about the wplug mailing list