You are here

Definitions

6 February, 2015 - 16:21

Definition 12.7: branching control structures

Allow the fow of execution to jump to a different part of the program.

Definition 12.8: break

A branching control structure that terminates the existing structure.

Definition 12.9: continue

A branching control structure that causes a loop to stop its current iteration and begin the next one.

Definition 12.10: goto

A branching control structure that causes the logic to jump to a different place in the program.

Definition 12.11: return

A branching control structure that causes a function to jump back to the function that called it.

Definition 12.12: exit

A pre-defined function used to prematurely stop a program and jump to the operating system.

We will discuss each item indicating which ones are allowed or not allowed within good structured programming practices.