• home
  • forum
  • my
  • kt
  • download
  • Break statement - C++

    Author: 2007-09-03 17:58:49 From:

    The break statement has two uses. You can use it to terminate a case in the switch statement. You can also use it to force immediate termination of a loop, bypassing the normal loop conditional test. When the break statement is encountered inside a loop, the loop is immediately terminated and the program continues to execute the statement that follows the loop. The format of break statement and a simple example is shown in the figure.

    Break statement - C++

    discuss this topic to forum

    relation tutorial

    No relevant information

    New

    Hot