Thursday, 22 March 2018

Use of "Go to" Statement

The goto statement is the most basic form of unconditional transfer of control.
  Although the keyword may either be in upper or lower case depending on the language, it is usually
written as:
   goto label

 The effect of a goto statement is to cause the next statement to be executed to be the statement appearing at ( or immediately after ) the indicated label. A label is an explicit name or number assigned to a fixed position within the source code and which may be referenced by control flow statement appearing elsewhere in the source code.

     Goto statement have been considered harmful by many computer scientists, notably Dijkstra.

0 Comments:

Post a Comment

Popular Posts

Categories

Android (21) AngularJS (1) Books (3) C (75) C++ (81) Data Strucures (4) Engineering (13) FPL (17) HTML&CSS (38) IS (25) Java (85) PHP (20) Python (85) R (69) Selenium Webdriver (2) Software (13) SQL (27)