65 879
Assignments Done
99,1%
Successfully Done
In October 2018

Answer to Question #797 in C# for Arthur

Question #797
Can we use switch operator for strings?
Expert's answer
Yes, the operator switch can be used with string variables and any integers.
The sample program would be

string command;
..........................
switch(command)
{
case "Mean"
{
.........
break;
}
case "Max"
{
............
break;
}
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions