answersLogoWhite

0

Switch - Case statement is similar to the if - else if statement construct in the way it operates. Both are used to check for a sequence of conditions and execute a piece of code based on success of the matching condition.

Difference - We need a break statement at the end of every case block to ensure that further cases are not executed in case of success of condition in one case block.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

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 difference bitween abstract and summary?

The difference between abstract and summary is that an abstract is a short from of a summary.


What is the difference bitween jeans and trouser?

trousers are basically your underwear and jeans are your pants


What is the difference between bitween pagefile and virtual memory?

pagefile is the virtual memory


Difference bitween steganography and stegnography?

I think no same meaning , only spellings are different.


What is the difference bitween black eyes and brown eyes?

nowt but the color is difrent they wurk v same


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 bitween culture and civilization?

Culture is what people eat where and do for living .(kind of) Civilisation is when people where first made.


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 are the difference bitween while and do-while statement in c language?

While loop will be executed only the specified conditions atisfies. Do-While loop executes atleast once before checking for condition. So even a condition fails, the loop will be executed once.


What is efsw pipe?

What is the difference bitween EFSW and SAW welding process. Whether SAW process is acceptable inplace of EFSW.


What is the difference bitween enable password and enable secret password in router?

enable secret password supersedes the enable password.