Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

why goto isnt used in program by programmers..

+2 votes
asked Apr 3, 2019 by anonymous
all about 'goto'..

3 Answers

0 votes
answered Apr 3, 2019 by bolarisme (580 points)
Because it's hard to maintain such code with goto statements.
You can find an article about it: "Go To Statement Considered Harmful"
0 votes
answered Apr 3, 2019 by LLL
No idea sorry <3
0 votes
answered Jun 22, 2019 by Robert Parry (240 points)
There's nothing wrong with goto provided you use it wisely - e.g. for cleanup at the end of a function before returning. Sometimes, there is no better option than to use goto - esp. in c.
commented Jul 14, 2019 by 1158 (140 points)
goto is a highly unstructed way of transferring from the program control from one point to another point to another point within a function it often makes the program control difficult to understand and modify.thatswhy goto is not used in program by programmers
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and receive answers from other members of the community.
...