What will be the output of the C#.NET code snippet given below?char ch = Convert.ToChar ('a' | 'b' | 'c'); switch (ch) { case 'A': case 'a': Console.WriteLine ("case A | case a"); break; case 'B': case 'b': Console.WriteLine ("case B | case b"); break; case 'C': case 'c': case 'D': case 'd': Console.WriteLine ("case D | case d"); break; }
1.case A | case a
2.case B | case b
3.case D | case d
4.Compile Error
Posted Date:-2021-02-20 14:28:12