Vidyalelo
C# Programming · Q83

Control Flow Statements in C Sharp

Programming · C# Programming · question 83

Q83

What will be the output of the following C# code? static void Main(string[] args) switch (5) case 5.0f: Console.WriteLine("harsh"); break; case 5: Console.WriteLine("amish"); break; case 5.0L: Console.WriteLine("ANKIT"); break; default: Console.WriteLine("ashish"); Console.ReadLine();

A.
amish
B.
ANKIT
C.
harsh
D.
Compile time error
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board