Will using goto cause memory leaks?

前端 未结 10 2055
迷失自我
迷失自我 2021-01-17 11:33

I have a program in which i need to break out of a large bunch of nested for loops. So far, the way most people have been telling me to do it is to use an ugly goto in my co

10条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-17 12:24

    The other answers are true.... however, if you have to nest loops that differently, I'd question the design that put them there. Splitting up that logic into separate functions would be a better way to solve such a problem.

    Billy3

提交回复
热议问题