Control Statements in C Plus Plus (C++)

Control statements alter the flow of execution of the programs. Control statements can be broadly divided into three categories:

  1. Decision-making or Conditional Statements (Branching and Selection)
    1. if statement
    2. if-else statement
    3. switch statement
  2. Loop Statements
    1. for statement
    2. while statement
    3. do-while statement
  3. Breaking Control Statements
    1. break statement
    2. continue statement
    3. goto statement

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *