Write one advantage of switch case statement.
Answers
Answered by
1
hey
in this the user can compare a no. Of values of a variable by a single switch statement and using a number of cases. It makes error detection easier as the program is divided into modules through these cases. ... Users cannot compare datas more or less than the value of the variable.
hope it helps you
Answered by
1
The main advantage is that in this the user can compare a no. Of values of a variable by a single switch statement and using a number of cases. It makes error detection easier as the program is divided into modules through these cases. It is generally used when many values for a variable are to be compared.
Similar questions