Thread: for loop code
View Single Post
  #8 (permalink)  
Old 07-11-2008, 03:42 PM
dargueta dargueta is offline
Guru
 
Join Date: Oct 2007
Age: 18
Posts: 696
Last Blog:
Programs Under the Hoo...
Rep Power: 12
dargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the rough
Default Re: for loop code

You can also put multiple expressions or no expressions at all. For example:

Code:
//No initializing
    int i = SOMEVALUE;
    ...code...
    for(; i < 5; ++i){ ... }
//Multiple statements
    int i , j;
    for(i = 0, j = 2; (i < 6)&&(j < 10); ++i, j +=5) { ... }
Reply With Quote