1.1k views

An unrestricted use of the "$goto$" statement is harmful because

1. it makes it more difficult to verify programs
2. it increases the running time of the programs
3. it increases the memory required for the programs
4. it results in the compiler generating longer machine code
edited | 1.1k views
+1

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.
edited by
0
what is "structural decomposition of the code "?
0
Means decomposing a code to multiple basic blocks which all have a single entry and single exit.
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.)

edited

1
2
3
4
5
6