Thiên Nhạc Tâm
New member
Select the output for following set of code.
A. A
B. B
C. C
D. D
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();
}
B. B
C. C
D. D