Tuesday, 26 October 2010

Unconditional statements


There are few types of unconditional statements or Jump Statements

1.break
2.goto.
3.continue

break
It is used to when the ctrl reaches the break statements . it comes out of the block
Syntax.
break;

goto
It is used to when the statement is there control goes to label
Syntax.
 goto label;

continue.
Continue statements is used to control goes to next iteration
Syntax.


continue;

1. break
2. continue
3. go to

You may like the following posts:
Return statement
Difference between break and continue statement
Statements
write a program using any unconditional statements

No comments:

Post a Comment