How can I break out of nested loops in C without using goto, if I have "while" in "while" for example?
Asked
Active
Viewed 3,287 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
- 19,396
- 14
- 68
- 91

Tobias Wollgam
- 761
- 2
- 8
- 25