Monday, April 29, 2019

GoTo Statement Essay Example | Topics and Well Written Essays - 500 words

GoTo Statement - test ExampleA goto statement is a constituent of many languages like C, C++, COBOL, Pascal, Algol and others, especially of multitude languages. Nevertheless a goto statement is not popular in all higher-level languages of programming. Thus in coffee goto statement is a reserved statement at present (Tribble 3).During the period of early stage of structure programming development many experts in computer science arrived at a conclusion that in programs it is better to use structured flow-control commands, for example, loops and if-then-else statements rather than a goto statement (Tribble 5). Though there are experts who run across that despite the fact that goto statement considered harmful, there exist some problems in a large(p) number of programming languages that cant be directly decided without a goto statement, like, for instance, exception handling or geological fault out of nested loops (Knuth 268).There are few good uses for a goto statement. It is no t uncommon for the class teacher to ban goto statements altogether. But the traditional legitimate use for a goto is to allow the programmer to escape from chummy nesting when a special case (usually an error) has been encountered. For Pascal programmers, this means that, on rare occasion, you may want to goto the contain of a subroutine in order to exit.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.