How can I break out of nested loops in C without using goto, if I have "while" in "while" for example?
Asked
Active
Viewed 2,895 times
1 Answers
1
If you can put both loops into a function the return statement could be used. Else the outer loop needs a further condition.
Onik
- 17,358
- 12
- 67
- 87
Tobias Wollgam
- 721
- 2
- 7
- 23