StudentShare solutions
Got a tricky question? Receive an answer from students like you! Try us!

Essay example - GoTo Statement

Only on StudentShare
Pages 2 (502 words)
A goto statement induces your program to unreservedly direct the control to the statement integrated with the label assigned to the goto statement. It is considered to be a basic operation for passing the control from one segment of your program to another one.

Extract of sample

A goto statement is a constituent of many languages like C, C++, COBOL, Pascal, Algol and others, especially of assembly languages. Nevertheless a goto statement is not popular in all higher-level languages of programming. Thus in Java goto statement is a reserved statement at present (Tribble 3).
During the period of early stage of structured 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 consider that despite the fact that "goto statement considered harmful", there exist some problems in a great number of programming languages that can't be directly decided without a goto statement, like, for instance, exception handling or breaking out of nested loops (Knuth 268).
"There are few good uses for a goto statement. It is not uncommon for the class instructor to ban goto statements altogether. But the traditional legitimate use for a goto is to allow the programmer to escape from deep 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 end of a subroutine in order to exit. ...
Download paper
Not exactly what you need?

Related papers

Hiromi Goto and Natalka Husar
Keiko, the mother, has rejected Japanese food (language and other cultural connections) in an attempt to assimilate her family after the trauma of the wartime internment. And the stories she tells are either about Japanese myths or about her own experiences. And they strengthen this connection; they make a sense of home inside of her no matter where she is. By trying to hold onto her past she…
3 pages (753 words)
SEA Statement
Although the Environmental Assessment (Scotland) Act 2005 (the Act) has now come into force, the first preparatory act of the Draft Strategy was undertaken prior to commencement of the Act, and therefore the SEA has been undertaken in accordance with the Regulations and not the Act.…
10 pages (2510 words)
Job Statement
Part of my current role as Support Assistant is to prepare learning material for these children, according to their abilities. I have also regularly worked with a private speech and language therapist, and have found this experience both useful and satisfying. Apart from this, I have liased with two outreach teachers from special schools in the borough, to make provisions for two autistic children…
Abbey Wood Playhouses Ticketing System
This application has now been modified so that it uses the Microsoft access database, rather than a random access file. Following is the attached Access database file which has been created when data was entered in this application.
20 pages (5020 words)
Personal statement (solicitor)
One of my primary interests in this field revolves around its dynamism and pace. The only constant in the world of law is change, with fast moving events and professional trends. Therefore, I have realised that the only opportunity I might have as regards experiencing the challenges of finding solutions to problems in a cost effective, practical and efficient manner is by doing it as a solicitor,…