Multiple choice

What is the output of the given C program?

int main()
{
int i = (1048576>>8>>3>>8>>3) + + - + (1024<<8<<3>>8>>3);
switch(i++) // Line 1
{
case 1024 : printf("Hello");
case 1025 : printf("How r u?");
case 512 : printf("Bye");
case 513 : printf("Bye Bye");
default : printf("Good Bye");
}
}

  1. Hello How r u? Bye Bye Bye Good Bye

  2. How r u? Bye Bye Bye Good Bye

  3. Bye Bye Bye Good Bye

  4. Bye Bye Good Bye

  5. Good Bye

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

This is the correct choice.