Sep. 5th, 2005 10:01 am:
Question about FOR loop

In a for loop, when is the counter incremented?

Ex:
for(int iCounter=0; iCounter<someNum; iCounter++)
{
    sum = iCounter + anotherNum;
}


Is iCounter incremented before or after the code block (being added to anotherNum)?

3start new thread  

Threads:

Thread Started By Replies Last Post

No Subject

kunzite1

2

09-05-05 11:03pm
by brandon_scott