answersLogoWhite

0

In some languages and programming environments, a case or switch statement is considered easier to read and maintain than an equivalent series of if-else statements, because it is more concise.

However, when implemented with fall-through, switch statements are a frequent source of bugs among programmers new to the switch statement.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What are the disadvantages of a two way switch?

What is Disadvantages of two way switch


Can a continue statement be used in a switch statement?

If you have a loop in your switch statement or around your switch statement, you can use the continue statement in that. You cannot use a continue statement outside of a loop (do, for, or while).


How 2 write five names in clanguage?

*language


What is the difference between 'switch' statement and 'if' statement?

we can use switch statement in multiple time but in if statement we can not use multiple time


What is the deffernce of the switch statement and the if statement in c plus plus?

If statement is single selection statement,whereas the switch statement is multiple selective.


What is the use of gets and puts functions in clanguage?

getting/putting strings


What are the advantages and disadvantages of crossbar switch?

Disadvantages are : 1.The crossbar switch is singled-layered switch. 2.At each point,there is a switch when closed,connects one of the inputs to one of the outputs.


What does default mean in switch statement?

Default clause in switch statement used to indicate that the desired option is not available with the switch case statement. it is similar to else statement of if statement which is used when the condition does not satisfy.


What are the advantages and disadvantages of switch?

podanga


What is the use of switch statement in java?

In java, a switch statement is used to simplify a long list of 'if' statements. A switch statement takes the form of:switch (variableName){case condition1; command1;case condition2; command2;...}


What are the disadvantages of switch?

it can destroy the computer if you do not have a UPS


What disadvantages of switch?

it can destroy the computer if you do not have a UPS