loop question | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

loop question

what does for(;;)s means ?

20th Mar 2019, 5:22 PM
Vishesh Saxena
Vishesh Saxena - avatar
3 Answers
+ 5
Sometimes you want to keep a loop running until you decide manually from within the loop that it should end. for (;;) { // code if (some_condition) break;
20th Mar 2019, 5:50 PM
HonFu
HonFu - avatar
+ 2
HonFu thanks, i get it .
20th Mar 2019, 5:51 PM
Vishesh Saxena
Vishesh Saxena - avatar
+ 1
Coffee☕Underrun thanks , but why we use it?
20th Mar 2019, 5:38 PM
Vishesh Saxena
Vishesh Saxena - avatar