Use of Break statement in switch statement
Explain the function of break statement in a switch statement with example?
Expert
Switch statement is the selection control statement which is used to handle several choices and move control to a case statements within its body.
Following code shows the example of the use of a switch statement in C#:
switch(choice)
{
case 1:
console.WriteLine("First");
break;
case 2:
console.WriteLine("Second");
default:
console.WriteLine("Wrong choice");
}
The break statement is used at the end of the case statement. Break statement is compulsory in C# and it avoids the fall through of one case statement to other.
State the use of the Select clause and SelectMany() method in LINQ?
Specify various types of assemblies and explain them.
Specify various states of the XMLHttpRequest along with their description.
When.NET was developed?
Is it possible to post and access view state in the other application?
Write down the various open source tool accessible for the VB.NET?
Describe ExpandoObject and DynamicObject classes.
Write the main difference between a RichTextBox and TextBox control.
Specify the new features involved in the Microsoft AJAX library?
Write the difference between an interface and abstract class?
18,76,764
1949546 Asked
3,689
Active Tutors
1445986
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!