[Solved] for(;;) vs do..while() for main program loop [closed]
[ad_1] do…while is completely equivalent to a for loop except the test is done at the end of the loop instead of at the beginning, so a do…while always runs at least once. In both cases you can exit the loop with break. You don’t need to throw an exception, but of course you can. … Read more