Functions, Operators, Switch Cases and Truth Tables : Switch Cases : C Language : Syntax

Syntax
switch_c <expression> { (<expression>) {
case_c <key_value> : <actions>;[break;]
...
case_c <key_value> : <actions>;[break;]
default : <actions>;
}
 
 

In this syntax:

<expression>—The data-item of the expression type. This can be either Integer or Enumerated.
<key_value>—The value. This can be either a literal integer or an enumerated value.
<actions>—The Rational Statemate actions.
Note:
break; can be used as one of the actions.