Given the switch statement, which of the following would be the first if statement to replace the
Question:
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 :
WriteLine("eleven");
break;
case 12 :
WriteLine("twelve");
break;
case 16 :
WriteLine("sixteen");
break;
}
a. if (case = 11)
b. if (case == 11)
c. if (control == 11)
d. if (switch == 11)
e. none of the above
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
C# Programming From Problem Analysis To Program Design
ISBN: 9781285856872
5th Edition
Authors: Barbara Doyle
Question Posted: