C++ goto statementIn C++, goto is used to skip execution to specific code and jump to execute other part of the program.
C++ example of goto statement
In the above example when entering number 4 the code will skip everything and go to printEvenNumber section.
In this page (written and validated by A. Gawali) you learned about C++ goto statement . What's Next? If you are interested in completing Cpp tutorial, your next topic will be learning about: Cpp Arrays Declaration - Access - Loop.
Incorrect info or code snippet? We take very seriously the accuracy of the information provided on our website. We also make sure to test all snippets and examples provided for each section. If you find any incorrect information, please send us an email about the issue: email@example.com.