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.
State the basic features of OOPs.
Illustrate the difference between Web.Config and Machine.Config and where it will be?
What is meant by the Managed Extensibility Framework?
Write all names of public properties well-defined in the WebService class.
Write down in brief, the objects in asp.net and state the main purpose of such objects?
Describe about lambda expressions which are used in LINQ?
What do you mean by Proxy and how to produce proxy for WCF Services?
Explain about LinqDataSource control?
Why XMLHttpRequest object is used in the AJAX?
Write down a brief note regarding rapid application development tool?
18,76,764
1933429 Asked
3,689
Active Tutors
1414418
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!