The goto statement is the most basic form of unconditional transfer of control.
Although the keyword may either be in upper or lower case depending on the language, it is usually
written as:
goto label
The effect of a goto statement is to cause the next statement to be executed to be the statement appearing at ( or immediately after ) the indicated label. A label is an explicit name or number assigned to a fixed position within the source code and which may be referenced by control flow statement appearing elsewhere in the source code.
Goto statement have been considered harmful by many computer scientists, notably Dijkstra.
Although the keyword may either be in upper or lower case depending on the language, it is usually
written as:
goto label
The effect of a goto statement is to cause the next statement to be executed to be the statement appearing at ( or immediately after ) the indicated label. A label is an explicit name or number assigned to a fixed position within the source code and which may be referenced by control flow statement appearing elsewhere in the source code.
Goto statement have been considered harmful by many computer scientists, notably Dijkstra.
0 Comments:
Post a Comment