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.
Explain about the rules and regulations which should be followed when creating the well-managed XML document.
Describe the major subsystems of the WPF (Windows Presentation Foundation) in brief?
Define Server-side scripting and Client-side scripting?
Write about the AJAX and JavaScript?
Explain MaskedTextBox control and what does the Mask property do?
Define the term Event.
Explain the XmlWriter class.
Name the root namespace which is used for fundamental types in .NET Framework?
Write the difference between globalization and localization?
Differentiate between fragment caching and page-level caching?
18,76,764
1930776 Asked
3,689
Active Tutors
1422706
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!