answersLogoWhite

0

"GOTO" . . . goes to the line number or label indicated, continues program execution from there,

forgets where it came from and never looks back.

"GOSUB" . . . goes to the line number or label indicated and continues program execution from there,

but remembers where it came from; as soon as it reaches a "RETURN" command, returns to the command

that immediately follows "GOSUB".

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Difference between goto and continue statement in c language?

In continue statement, we immediately continue next step through loop In go to statement, we go to in perfect label which we call.


WAP to reverse the supplied number without using string manipulators in qbasic?

10. input number 20. let accumulator = 0 30. if number > 0 then goto 80 40. let digit = number % 10 50. let accumulator = accumulator * 10 + digit 60. let number = number / 10 70. goto 30 80. print accumulator


What has the author John Goto written?

John Goto has written: 'Shotover' 'The now of here' 'Goto' 'Goto'


What is the difference between looping statements - c program?

Repetition. For example the following lines do the same thing: while (expression) statement; LABEL: if (expression) {statement; goto LABEL; } Or these: for (exp1; exp2; exp3) statement; exp1; LABEL: if (exp2) {statement; exp3; goto LABEL; }


What is go-to unconditional in c plus plus?

An unconditional goto is a goto that has no associated conditional expression. The following example demonstrates conditional and unconditional goto statements. int x=rand(); if (x) goto label_1; // conditional goto (when x is non-zero) else goto label_2; // conditional goto (when x is zero) label_1: // ... goto label_3; // unconditional goto (jump past label_2) label_2: // ... label_3: // ...


Why is goto statement harmful?

It isn't. True, you can write bad code with goto, but you can do that without goto as well.


How tall is Kumiko Goto?

Kumiko Goto is 161 cm.


How tall is Norihide Goto?

Norihide Goto is 192 cm.


When was Shigeyuki Goto born?

Shigeyuki Goto was born in 1955.


When was Katsu Goto born?

Katsu Goto was born in 1862.


When did Katsu Goto die?

Katsu Goto died in 1889.


When was Toru Goto born?

Toru Goto was born in 1934.