Select the output for following set of code. [code] static void Main(string[] args) { int movie = 1; switch (movie << 2

Select the output for following set of code.
Code:
static void Main(string[] args)
{ 
    int movie = 1;
    switch (movie << 2 + movie)
    {
        default: 
            Console.WriteLine("A");
            break;
        case 4: 
            Console.WriteLine("B");
            break;
        case 5: 
            Console.WriteLine("C");
            break;
        case 8: 
            Console.WriteLine("D");
            break;
      }
      Console.ReadLine();
}
A. A
B. B
C. C
D. D
 

Tìm kiếm

Back
Top