Given the switch statement, which of the following would be the first if statement
to replace the first test in the switch?
switch (control)
{
case 11 : Console.WriteLine("eleven");
break;
case 12 : Console.WriteLine("twelve");
break;
case 16 : Console.WriteLine("sixteen");
break;
}
a. if (case = 11)
b. if (case == 11)
c. if (control == 11)
d. if (switch == 11)
e. none of the above
Sorry the answer is not available at the moment…
If you are able to find the answer, please make sure to post it here. So that your Juniors have smile on their lips and feel happy.
Spread the 'tradition of sharing'.