Vidyalelo
C# Programming · Q86

Control Flow Statements in C Sharp

Programming · C# Programming · question 86

Q86

What will be the output of the following C# code? static void Main(string[] args) int const p = 0; switch (3 * 5 / 6) case p: Console.WriteLine("A"); break; case p * 1: Console.WriteLine("B"); break; case p - 2: Console.WriteLine("C"); break; default: Console.WriteLine("D");

A.
A
B.
B
C.
C
D.
Compile time error
Answer

Answer: Option D

Solution

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