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");
}
return 0;
}

  1. Case - 1 Case 1

  2. Case - 1 Case 1 Case 0

  3. Case 0

  4. No output

  5. Error at Line 1

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

This is the correct answer.