Goto statement in c++ is used to shift control from goto to a certain location of the program by using a label. A label is a name given to a specific line of the program where the control is going to shift. It is created by the goto identifier followed by a colon “:”
Syntax: C++ Goto statement
The c++ goto statement is not recommended because it enhances the complexity of the program. You can use “break” and “continue” statements as to its alternative.