goto or function

which is more stable? using goto or using function?
"stable"? What do you mean by "stable"?

I can tell you though that you shouldn't use "goto" unless you have very compelling reasons to. Let me also tell you that you don't.
Using functions and loops correctly will give your program a real structure. This will allow you to make things more complicated without making absolutely unreadable and undebuggable code. The only reason you may want to use a goto is for an emergency exit from multiple embedded loops, but even then there are other ways.

If you ever use a goto, don't expect anyone on this site to try and read your code and give you advice. If anything they will almost always just tell you to get rid of the goto.
Topic archived. No new replies allowed.