Goto means.? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

Goto means.?

ans.

21st Sep 2017, 11:08 AM
Bhut Prince
Bhut Prince - avatar
2 Answers
0
It is used to forcefully move the instruction execution point to a specific label predefined, I think it's ancient, people avoid that approach these days, it's messy too, as much as possible, stay away from that. Hth, cmiiw
21st Sep 2017, 11:12 AM
Ipang
- 1
"goto" allowing you to move from piece of code to another piece of code in main or in general. DO NOT ever use "goto" it's leading to "spaghetti code", and if you feel you need to use it then probably you coded your idea wrong.
21st Sep 2017, 12:19 PM
Cain Eviatar
Cain Eviatar - avatar