Break statement in switch statement
What does a break statement do in the switch statement?
Expert
Switch statement is the selection control statement that is used to handle multiple choices and transfer control to the case statements within its body. The following code snippet shows an example of the use of the switch statement in C#:
switch(choice) { case 1: console.WriteLine("First"); break; case 2: console.WriteLine("Second"); break; default: console.WriteLine("Wrong choice"); break; }
In switch statements, the break statement is used at the end of a case statement. The break statement is mandatory in C# and it avoids the fall through of one case statement to another.
Specify the various improvements made in the CAS in .NET 4.0?
Briefly describe about the XML elements.
What do you mean by Proxy and how to produce proxy for WCF Services?
Describe in brief regarding the Visual basic.NET?
Two catch blocks can be executed or not?
Illustrate different types of inheritance?
List the basic characteristics of the Cloud computing?
Write the namespaces which are required to enable the use of databases in the ASP.NET pages?
State the purpose of DataView?
Explain what do you mean by .NET?
18,76,764
1936667 Asked
3,689
Active Tutors
1458312
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!