C plus plus support jumps.
And in most cases there are better ways to branch code.
However, for completeness, we will cover the mechanism here.
There are two parts to a jump, a labeled statement to jump and the to go to statement.
A label has the same naming rules as a variable and it's declared suffixed with a colon.
And it must be before statement here.
The Goto statement is called using the labels name here.
Let's make it the another for loop here for integer.
Or integer zero while is less than ten.
Lower integer zero while is less than ten and increment by one.
Here and std std see out or make it see out here.
See out e here and inline here.
And if e equals five then go to end here and.
Here.
Actually, we don't, uh, need.
We have to declare the end here as well.
If we make it go to here and here.
Outside the loop here in the main function.
And.
And STD.
STD.
Arrested or out.
And here.
So the label must be in the same function as the calling go through here.
So let's make it run.
And as you can see here, if condition is executed and we made it with go to keyword and executed the
end here.
So the label must be in the same function as the calling go through here, as I said earlier.
But the jumps are rarely used because they encourage you to write non structured code.
However, if you have a routine with the loops or if statements, it might make more sense and more
readable to use a goto to jump to clean up code here.