Sunday, February 27, 2005

The break, continue and return statements are not branching statements

Introduction

Branching statements are statements that let you make decisions in your program (Holzner 2003).

Discussion

So, break, continue and return statements are not branching statements but jump statements, because those statements are for jumping, not for making decisions.

The branching statements (also called conditional statements) are:

  • if statement
  • else statement
  • switch statement

References

No comments: