|
|
|
|
|
- Reason
- Correction
- Example
- Accessing a label declared in the code of a loop statement
Error 42: Label out of scope of GOTO
A GOTO label is used in a FOR loop. However, the corresponding GOTO statement is not found in the FOR statement. - Include the GOTO statement and the corresponding label in the FOR statement.
- Delete the label of GOTO statement from the FOR loop.
Accessing a label declared in the code of a loop statement Code triggering the error I is int MyArray is array of 10 int ... GOTO WRITE2 Â FOR I = 1 TO 10 MyArray[I] = 0 Â WRITE2: MyArray[I-1]=I Â END
Possible correction Delete the label. I is int MyArray is array of 10 int ... Â FOR I = 1 TO 10 MyArray[I] = 0 Â MyArray[I-1]=I Â END
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|