duplicate case value

duplicate case value.

Description:


case value can be used only one time in a switch statement.

Example


Output


How to fix it ?


change the duplicated case value.

syntax


switch (<  expression of integer type>) {
case <integer onstant-expression> :
statement(s);
break; /* optional */

case <integer onstant-expression> :
statement(s);
break; /* optional */

/* you can have any number of case statements */
default : /* Optional */
statement(s);
}

See also


Leave a Reply

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