answersLogoWhite

0


Best Answer

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

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

logical operators cannot be used with switch statements. for instance

case k>=20;

not allowed

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the disadvantages of switch statement in C-language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How 2 write five names in clanguage?

*language


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).


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;...}


How do you break a loop in a switch case statement?

using break; statement


Explain with suitable example how switch statement is differ from if statement?

www.assignmentsclub.com