Search



Tuesday, 18 August 2015

Switch Case Theory

Switch is basically a multi-way decision making statement, tests the values of a given variables against a list of case  values and when a match is found a block of statement  associated with that case is executed.


THE BREAK STATEMENT: 

  1. The keyword break allows the programmers to terminate the loop.
  2. The break skips from the loop on block in which it is defined.
  3. After break the control automatically goes to the first statement after the loop or block.
  4. We can also use break statement in the nested loops if we use break statement in the innermost loop then the control of the program is terminated only from the innermost loop.

No comments:

Post a Comment

Guys if you think something is wrong or should be edit than please do comment.