What is the value of variable 's‘ after the execution of following switch statement?Choose the correct option from the given options.
x = 3;
switch ( x ) {
case 1: s = ‘A‘; break;
case 2: s = ‘B’; break;
case 3: s = 'C‘; break;
default: s = 'D'; break;
}
(a) A
(b) B
(c) C
(d) D
Answers
Answered by
6
the right answer is D
Answered by
2
Answer:
Correct anwer is (d)D
Explanation:
Similar questions