How do switch statements work?



How do switch statements work?..

Answer / Pradeep Kumar Singh

The switch statement in C# compares the value of an expression with a series of cases. If there is a match, the code for that case is executed until a break statement or the end of the switch block is reached.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is the use of inheritance in c#?

1 Answers  


How does dll hell solve in .net?

1 Answers  


What are the desktop applications?

1 Answers  


What are data types in C#?

1 Answers   TryTechnicals Pvt Ltd,


What is the use of the dispose method in C# ?

1 Answers   Infosys,


What is Inheritance in C#?

2 Answers   B-Ways TecnoSoft,


What is literal in c#?

1 Answers  


What is difference between override and new in c#?

1 Answers  


Is c# different than c++?

1 Answers  


What are the advantages of using partial classes?

1 Answers  


What is the use of iqueryable in c#?

1 Answers  


how to prevent a class from being inherited in c#.net?

1 Answers  


Categories