For( ; ; ) hw this loop is executed and what will be the o/p | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

For( ; ; ) hw this loop is executed and what will be the o/p

27th Jul 2017, 9:32 AM
Shravan Kalkota
Shravan Kalkota - avatar
4 Answers
+ 13
endless loop
27th Jul 2017, 9:40 AM
jay
jay - avatar
+ 13
no condition to check means a loop run forever I.e.endless loop
27th Jul 2017, 9:43 AM
P R
P R - avatar
+ 6
It is called the INFINITE "FOR" LOOP.
27th Jul 2017, 10:05 PM
NetMan
NetMan - avatar
+ 3
Loop starts. declares no variables. Declares no condition for exit. declares no iteration. Loop body runs. Loop body ends Test loop exit condition: returns false. Repeats from start of loop body.
27th Jul 2017, 9:45 AM
josh mizzi
josh mizzi - avatar