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.
How users of an application can be prevented from editing the text in the ComboBox controls in .NET 4.0?
Explain, what is Connection Pooling?
Explain the working of Cookies. And also give the example of the Cookie abuse?
Write down the three main points in WCF?
Explain Hashtable?
Describe briefly LINQ (Language Integrated Query)?
How we can dynamically add the user controls to the page?
Name the method that offers a functionality to display the dialog box during runtime?
Illustrate the term Web User Control?
What is Custom Activities?
18,76,764
1929405 Asked
3,689
Active Tutors
1417818
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!