Tuesday, September 9, 2008

Apple Certification Exam 9L0-509

The goto statement is strongly discouraged as it makes it difficult to follow the program logic, this way 9L0-509 inducing to errors. In some (mostly rare) cases the goto statement allows to write uncluttered code, for example, when handling multiple exit points leading to the cleanup code at a function exit (and exception handling is not a better option). Except in those rare cases, the use of unconditional jumps is a frequent symptom of a complicated design, 9L0-402 study guide as the presence of many levels of nested statements.

In exceptional cases, like heavy optimization, a programmer may need more control over code behavior; a goto allows the programmer to specify that execution flow jumps directly and unconditionally to a desired label. A label is the name given to a label statement 9L0-509 elsewhere in the function.
Gotos are typically used in functions where performance is critical or in the output of machine-generated code (like a parser generated by yacc.)

The goto 9L0-402 audio exam statement should almost always be avoided, there are rare cases when it enhances the readability of code. One such case is an "error section".

No comments: