Multiple choice

What is the output of the given C program?

int main()
{
int i = 1048576>>8>>3>>8>>3;
switch(i++ - 1) // Line 1
{
case "-1" : printf("Case -1");
case "1" : printf("Case 1");
default : break;
case "0" : printf("Case 0");
}
}

  1. Case -1 Case 1 Case 0

  2. Case -1 Case 1

  3. Case 0

  4. Case 1

  5. Compiler error

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

This is the correct answer.