+ 2
What does an empty for-loop (for(;;)) in Java do?
What happens if dont type any conditions in a for-loop in Java, but only two semicolons? Is this an infinite loop? And is this useful in any situation?
2 Answers
+ 9
yes this is a infinite loop i made this it might be useful âș
https://code.sololearn.com/c4AI99y8ocS5/?ref=app
+ 16
for(;;) is also a infinite loop in C++ đđ