Do-while
A do while loop, sometimes just called a do loop, is a control flow statement that allows code to be executed repeatedly based on a given Boolean condition.
Goto
In imperative programming, a "go to" statement is an unconditional jump instruction that changes the flow of control to the point of the program referenced by the "go to" statement.
Others
Example |
---|
But goto is rarely used in modern coding it is not likely to perform any better than a do-while loop after compiler optimizations are applied and it has limitations on how it can be used from question How to go back to a certain point in the code |