C – Case control statements

Prev     Next The statements which are used to execute only specific block of statements in a series of blocks are called case control statements. There are 4 types of case control statements in C language. They are, switch break continue goto 1. switch case statement in C: Switch case statements are used to execute only specific case statements based on the switch expression. Below is the syntax for switch case statement. switch (expression) {      case label1:   statements;                            break;      case label2:   statements;     … Continue reading C – Case control statements