answersLogoWhite

0

The short answer is that goto statements generally cause messy and hard to read code. This reduces the ability to update that code. Also it was proven that nearly everything that goto was used for could be done using other control statements like the while loop or function calls.

for a more informative answer go here

http://www.cs.utexas.edu/~EWD/transcriptions/EWD02xx/EWD215.HTML

User Avatar

Wiki User

13y ago

Still curious? Ask our experts.

Chat with our AI personalities

BeauBeau
You're doing better than you think!
Chat with Beau
DevinDevin
I've poured enough drinks to know that people don't always want advice—they just want to talk.
Chat with Devin
ViviVivi
Your ride-or-die bestie who's seen you through every high and low.
Chat with Vivi

Add your answer:

Earn +20 pts
Q: Why did Edsger Dijkstra find the goto statement to be harmful?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What are some examples of how technology can be helpful and harmful to society?

technology helps us find information we can't find anywhere else. technology is harmful because our environment is being harmed by the oil being lost and humans using too many things we don't need.


How does Prim's algorithm differ from Kruskal's and Dijkstra's algorithms?

First a vertex is selected arbitrarily. on each iteration we expand the tree by simply attaching to it the nearest vertex not in the tree. the algorithm stops after all yhe graph vertices have been included.. one main criteria is the tree should not be cyclic.


What is the difference between dijkstra and kruskal's algorithm?

Both of these functions solve the single source shortest path problem. The primary difference in the function of the two algorithms is that Dijkstra's algorithm cannont handle negative edge weights. Bellman-Ford's algorithm can handle some edges with negative weight. It must be remembered, however, that if there is a negative cycle there is no shortest path.


What is the substitution of variables using the ohm's law?

Using the equation for the power dissipated by a resistor and Ohm's Law V=IR find the expression for power that involves only current and voltage. using the method of substitution of variables, find a solution to the problem statement above What are an alternative set of units that could also be used to express power.


What is the purpose of Internet banking system?

It enables people to look after some of their banking needs from a computer connected to the internet. They can do things like manage some transactions or view their bank statements. This means that they don't need to go to the bank when they want to do some things, or wait for their bank statement to be sent to find out what is happening in their account.