Computer Science, asked by TbiaSupreme, 1 year ago

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 nisha2473
6
the right answer is D
Answered by aryan12clasher
2

Answer:

Correct anwer is (d)D

Explanation:

Similar questions