Paper Example Undergraduate 307 words

Flow Control Statements in Computer

Last reviewed: March 28, 2009 ~2 min read

Flow Control Statements

In computer programming, the flow control statements and other constructs control the order in which loopingoperations are executed. For example, common statements such as for…next and while are known as flow control statements. Branching statements, such as if…then are also part of a programming language's flow control mechanism (Flow control).

Flow control statements alter the normal flow of program execution or the execution logic of a control construct. (Flow control statements).

The CONTINUE statement has no effect on program execution. It is generally used to mark a place for a statement label. The CYCLE statement interrupts execution of the current iteration of a DO loop. The EXIT statement terminates a DO loop. If it specifies the name of a DO loop within a nest of DO loops, the EXIT statement terminates all loops by which it is enclosed, up to and including the named DO loop.

The computed GO TO statement transfers control to one of several labeled statements, as determined by the value of an arithmetic expression. The unconditional GO TO statement transfers control to the statement with the specified label.

You’re 64% through this paper. Sign up to read the full paper.

Sign Up Now — Instant Access Already a member? Log in
130,000+ paper examples AI writing assistant Citation generator Cancel anytime
Cite This Paper
PaperDue. (2009). Flow Control Statements in Computer. PaperDue. https://www.paperdue.com/essay/flow-control-statements-in-computer-23523

Always verify citation format against your institution’s current style guide requirements.