Unconditional Control Statements

Statements that transfers control from on part of the program to another part unconditionally Different unconditional statements are goto break continue 1. goto Statement The goto statement is used for unconditional branching or transfer of the program execution to the labeled statement. The goto statement is strongly discouraged as it makes it difficult to follow the program logic, this way 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…

Read More