What is a GOSUB-RETURN statement?
Answers
Answered by
6
The GOSUBenables you to jump to a certain position in a program. Labels are used to specify what point in the program to continue execution.The GOSUB-RETURN command is same as GOTO accept when it encounters a RETURN statement.The program returns back to the GOSUB command in other words RETURN continuous program execution after the previous GOSUB statement.
Answered by
0
GOSUB sends the program to a sub program that uses a line number or label.
GOSUB label is any line number or line label designated with a colon after it. We don't use the colon in the call.
RETURN at the end of the procedure returns to the next code after the original call. END or SYSTEM can also be used to end program.
Hope this helps!!!
GOSUB label is any line number or line label designated with a colon after it. We don't use the colon in the call.
RETURN at the end of the procedure returns to the next code after the original call. END or SYSTEM can also be used to end program.
Hope this helps!!!
Similar questions
Business Studies,
8 months ago
Math,
8 months ago
Math,
8 months ago
Math,
1 year ago
English,
1 year ago