0

Possible Duplicate:
GOTO still considered harmful?
To Use GOTO or Not?

I have a question about using the statement goto in language as c++. Is it good practise to use it and if is not why, otherwise why is good to use it?

Thanks in advance.

Community
  • 1
  • 1
Jordan Borisov
  • 1,523
  • 6
  • 32
  • 67
  • 6
    `goto` is not an *operator* – Paul R Jan 31 '12 at 13:41
  • Context dependent. Also, see [GOTO still considered harmful?](http://stackoverflow.com/questions/46586/goto-still-considered-harmful). `goto` is useful sometimes (e.g. when doing cleanup after error checking so you don't repeat the same code every time), but don't use it everywhere you can. –  Jan 31 '12 at 13:41
  • duplicate: http://stackoverflow.com/questions/3517726/what-is-wrong-with-using-goto – B Faley Jan 31 '12 at 13:43

0 Answers0