goto (reserved word)

Language:
Русский
English

  goto (reserved word)


A goto statement transfers program execution to the statement prefixed by the label referenced in the statement.

Syntax

 goto Label

Remarks

The label must be in the same block as the goto statement; it is not possible to jump out of a procedure or a function.

Example

 label 1, 2;
 goto 1
    .
    .
    .
 1: WriteLn ('Abnormal program termination');
 2: WriteLn ('Normal program termination');

Тэги: goto
| G+
Код для вставки: :: :: :: ::
Поделиться: // //