-->

Facebook

Jasper Roberts - Blog

Saturday, March 21, 2015

break and continue

break:
-In C programming language, break is used in terminating the loop immediately after it is encountered.
-The break statement is used with conditional if statement.
-Generally break statement is used in switch case statement at the end of the each and every case.

example:
              break;


continue:
-It is sometimes desirable to skip some statements inside the loop of a program.
-At that time or situation, continue is used.

example:
             continue;

No comments:

Post a Comment