22 votes 22 votes An unrestricted use of the "$goto$" statement is harmful because it makes it more difficult to verify programs it increases the running time of the programs it increases the memory required for the programs it results in the compiler generating longer machine code Programming in C gate1994 programming easy goto + – Kathleen asked Oct 4, 2014 • recategorized Apr 25, 2021 by Lakshman Bhaiya Kathleen 3.9k views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply Chhotu commented Oct 24, 2017 reply Follow Share Reader could also refer --> https://stackoverflow.com/questions/46586/goto-still-considered-harmful 2 votes 2 votes srestha commented Aug 30, 2019 reply Follow Share Same question https://gateoverflow.in/87095/gate1989-3-i 0 votes 0 votes Please log in or register to add a comment.
Best answer 49 votes 49 votes Use of $goto$ takes out the structural decomposition of the code and hence it becomes very difficult to verify or debug the code. As far as performance or memory impact is concerned, $goto$ has no effect on them. Correct Answer: $A$ Arjun answered Oct 4, 2014 • edited May 8, 2019 by Naveen Kumar 3 Arjun comment Share Follow See all 2 Comments See all 2 2 Comments reply Angkit commented Jun 12, 2017 reply Follow Share what is "structural decomposition of the code "? 6 votes 6 votes Arjun commented Jul 21, 2017 reply Follow Share Means decomposing a code to multiple basic blocks which all have a single entry and single exit. 7 votes 7 votes Please log in or register to add a comment.
6 votes 6 votes Solution : A) It makes it more difficult to verify programs. Proof of correctness : https://en.wikipedia.org/wiki/Goto#Criticism (1st Paragraph, last 4 lines.) SiddharthMahapatra answered Jul 21, 2017 • edited Jan 9, 2018 by SiddharthMahapatra SiddharthMahapatra comment Share Follow See all 0 reply Please log in or register to add a comment.