answersLogoWhite

0


Best Answer

"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

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is difference between goto and gosub in qbasic?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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.


When was Eiichi Goto born?

Eiichi Goto was born in 1931.


When did Eiichi Goto die?

Eiichi Goto died in 2005.


When was Satoshi Goto born?

Satoshi Goto was born in 1971.


When was Ryu Goto born?

Ryu Goto was born in 1988.


When was Hitoshi Goto born?

Hitoshi Goto was born in 1957.


When was Toru Goto born?

Toru Goto was born in 1934.