January 17th, 2013, 12:53 AM
Join Date: Jan 2013
Time spent in forums: 1 h 17 m 46 sec
Reputation Power: 0
Nested for loop unexpected behavior
Hi i'm a C# coder and new to C but the code below has been giving me some weird behavior.
printf("i=%d j=%d \n",i,j);
The output i'm receiving from the console window reads.
etc.. but (i) starts at 5 for some reason so i decided to debug the code to see what the problem was. As i started to step through the code i got a different output.
Now since i'm stepping through my code it's giving me a different output? What am i missing here?