skip to main content
research-article

Using goto statements

Published: 17 September 2014 Publication History

Abstract

This article discusses several uses of the goto statement in modern C/C++ code. The goto statement is considered a harmful statement, which is generally not recommended for use in "high-level" languages. In this discussion, several uses of the goto statement that are helpful in a controlled setting will be presented. These usages are for error handling and jumping out of nested loops.

References

[1]
Dijkstra, E. (1968). Go To Statement Considered Harmful. Communications of the ACM, Vol. 11, No. 3, March 1968, pp. 147--148.
[2]
Dahl, O. J., Dijkstra, E. W., Hoare, C. A. R. (1972). Structured Programming. Academic Press Ltd. London, UK.
[3]
Knuth, D. (1974). Structured programming with go to statements. Computing Surveys, VoL 6, No. 4, December 1974.

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM SIGSOFT Software Engineering Notes
ACM SIGSOFT Software Engineering Notes  Volume 39, Issue 5
September 2014
119 pages
ISSN:0163-5948
DOI:10.1145/2659118
Issue’s Table of Contents

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 17 September 2014
Published in SIGSOFT Volume 39, Issue 5

Check for updates

Author Tag

  1. goto statements

Qualifiers

  • Research-article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • 0
    Total Citations
  • 159
    Total Downloads
  • Downloads (Last 12 months)1
  • Downloads (Last 6 weeks)0
Reflects downloads up to 03 Mar 2025

Other Metrics

Citations

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media