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.
Illustrate how to manage state in ASP.Net?
Write few characteristics of ADO.NET Entity Framework 4.0.
Write major difference between function and sub-procedure?
Describe the function of a SizeMode property of a PictureBox control?
How a condition can be implemented in the workflow?
Explain the use of Windows Installer.
Differentiate between Assembly and NameSpace?
Can I employ Windows Forms in the WPF application? Give reasons.
Differentiate between Web server controls and HTML?
Write the differences between HTML and XML.
18,76,764
1940017 Asked
3,689
Active Tutors
1427590
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!