answersLogoWhite

0

switch (expression) { case value 1 : [ statement-block 1] [break ;] case value 2 : [ statement-block 2] [break ;] ……. ……. case value N : [ statement-block N] [break ;] [default: [default block] [break;] ] } statement x;

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

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 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 is s switch used for in format disk?

The "-s" switch in the format command is used to format the disk so that it is a "system" disk. In other words, it makes it a "bootable" disk.


What is a format of cost statement?

No such statement. You may want to ask about the 'const' type-modifer.


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


A statement made in an if then format is called a?

It is called a hypothesis.


What type of statement is made in an if then format?

Binary logic.


Which format does a statement display in US bank?

PDF


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

www.assignmentsclub.com


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

using break; statement