Flow-control structures
In this task, we document common flow-control structures. One common example of a flow-control structure is the goto
construct.
C++
goto
Compiler: GCC 3.3.4
#include <iostream> int main() { LOOP: std::cout << "Hello, World!\n"; goto LOOP; }
Note that "goto" may also be used in conjunction with other forms of branching.