Q 47 Elaborate the structure of a Switch statement?
Answers
Answered by
0
Hey mate!
Here's your answer!!
A switch statement, in C#, is a selection statement that allows for the transfer of program control to a statement list with a switch label that corresponds to the value of the switch expression.
The use of a switch statement results in improved performance and readability when compared to that of the if..else..if.. ladder. A switch statement can contain another switch statement, thus forming a nested switch, which can yield better performance over other approaches.
✌ ✌ ✌
#BE BRAINLY
Here's your answer!!
A switch statement, in C#, is a selection statement that allows for the transfer of program control to a statement list with a switch label that corresponds to the value of the switch expression.
The use of a switch statement results in improved performance and readability when compared to that of the if..else..if.. ladder. A switch statement can contain another switch statement, thus forming a nested switch, which can yield better performance over other approaches.
✌ ✌ ✌
#BE BRAINLY
sam1478:
hey that is right answer but not full
Similar questions
Chemistry,
7 months ago
Biology,
7 months ago
World Languages,
7 months ago
Social Sciences,
1 year ago