Goto and labels - overview
- Politechnika Śląska
- Fundamentals of Computer Programming
goto and labels • C provides a goto statement, and labels to jump to • The goto statement is never necessary • In practice it is easy to write code without it • Sometimes goto may be useful: breaking processing in some deeply nested structure: for ( ... ) for ( ... ) { ... if (error_occured) goto e...