To reflect your original loop in a traditional way, you'd do something like:
--Code:for( i = nc; i>=0;i--) ...
Mats
Printable View
No, in terms of the loop condition it means: while (i != 0). Then you consider that there is a post-decrement in effect.Quote:
very true but as im new to this i dont understand how the condition ( ; i-- ; )
does it mean if ( i ) is one less than the previous loop?
im still confused how for(i=nc; i--; ) is the same as while(i != o)
is there a link you know that i could read up on that?