The goto statement transfers program control to a position specified by the programmer. Consequently, it interferes with the usual sequential execution of a program.
The goto statement has had a long controversial history. One of the first languages to include this language construct was an early version of FORTRAN. However, in the late 1960s, most of the 1970s, and even presently at rare occasions, the pros and cons of this semi-structured language element are hotly debated among programmers and language designers.
Most programmers and computer language experts agree that indiscriminate use of the goto statement leads to ...