·  C++ – Syntax – Conditional Statements – goto

 

- Info:

  - This tutorial shows how to use goto conditional statements.

 

- Example:

  - Create C++ Console Application Test.cpp.

 

    Test.cpp

    #include <stdio.h>

   

    int main() {

   

      goto jump1;

      cout << "Skip this.";

   

    jump1:

      cout << "Hello.";

   

      return 1;

   

    }