Depends on the step value: step <=0 --> Infinite loop step > 0 --> One iteration
Right? ;-) On 14-08-28 10:18 AM, Vesa wrote: > On 08/28/2014 02:50 PM, musikbear wrote: >> diiz wrote >>> for (int i = 0; i < 1; i += step) >>> This loop will either only iterate once, or it'll get stuck in infinite >>> loop. Pop quiz... can you spot why? >> var i was initated <1 >> i<=1 should secure one cycle, and i belive a pre-increment would too (cant >> rem. the syntax :p > Nope, that's not it. > > You fail the quiz musikbear ;) > > ------------------------------------------------------------------------------ > Slashdot TV. > Video for Nerds. Stuff that matters. > http://tv.slashdot.org/ > _______________________________________________ > LMMS-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/lmms-devel > ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ _______________________________________________ LMMS-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lmms-devel
