2 ms·
The problem with break and continue is that they only apply to the inner most loop. Unless you change certain values, you're only going to reenter the same loop
by TallGuyShort 17y ago
The problem with break and continue is that they only apply to the inner most loop. Unless you change certain values, you're only going to reenter the same loop immediately. In that case - goto is actually a cleaner solution.
- Tichy 17y agoThat's what labels are for. I think you can do loop: for(i=0;i<10;i++){ for(...) { break loop; } }