Select the correct option to test your answer:
Computer
Control Flow Statements In C Sharp
Difficulty: Medium
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"); } }
More Computer Questions
What happens if the following program is executed in C and C++? #include <stdio.h> int main(void) { int new = 5; printf("%d", new); }
What is the time complexity of Heap's algorithm?
How do you catch an exception by reference in C++?
What is it called if an object has its own lifecycle and there is no owner?
A BI reporting system does not ________ .