Computer Science, asked by swastiibarjatya2079, 11 months ago

What is the printout of the following switch statement?

char ch = 'a'; switch (ch){ case 'a': case 'A': System.out.print(ch); break; case 'b': case 'B': System.out.print(ch); break; case 'c': case 'C': System.out.print(ch); break; case 'd': case 'D': System.out.print(ch); }
A.abcd
B.aa
C.a
D.ab

Answers

Answered by GyaniRishabh2005
4
hlo mate,

your answer is C. a
Answered by Pramodkumarhani
2

✔✔ Hello mate ✔✔

here's your answer  

The correct option is ( C).a

¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤

char ch = 'a'; switch (ch){ case 'a': case 'A':

¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤  

Hope it helps you


Similar questions