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.
Briefly describe about XSLT?
What are XML attribute?
Write about ADO.NET in brief.
List some of the new features of ASP.NET AJAX 4.0?
Explain the use of a toolstrip container?
State the major difference between the sub-procedure and function?
How we can decide whether we should deploy application or publish application?
Explain about the different services provided by the DLR to CLR.
What is covariance and contra-variance in .NET Framework 4.0 with example for each.
Briefly describe about data type?
18,76,764
1952077 Asked
3,689
Active Tutors
1425861
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!