Hello all
I am trying to understand loops more clearly. I have a question on some code
that i have been studying maybe someone can help:
If I have a loop
for( i = 0; i < BarCount; i++ )
{
condition .....
{
for (j = i + 1; j < BarCount; j++)
{ ........ .....
i = j;
break;
}
}
I am trying to understand this loop construct.
a) why would i set J to i+1? why not have j=i?
b) what does i=j accomplish??
if anyone can clarify that would be great, I have seen this loop construct a
few times b4.
thanks
zeek