Wednesday, 19 September 2012

Continue.break and goto statement

Continue statement
Continue statement transfer the control to the start of block.It is used in the body of loop
Syntax 

Example


break statement
It is a tool to take out the control.It transfers control to end of block.It is used in body of loop and switch statements.
Example





Flow chart





Syntax















goto statement
It is an unconditional transfer of control.It transfers the control to the specific point.The goto statement is marked by label statement.Label statement can be used anywhere in the function above or below the goto statement.It is written as goto label;
where label is an identifeir
label: statement

Syntax


Example