Multiple choice

What is the output of the given program?

int main()
 {
 int i = 128>>3>>2>>2; switch(i)
 {
 printf("Bye"); case 128<<4<<3<<2>>6 :
 printf("\\nHello"); case 128<<4<<2<<2>>6 :
 printf("\\nKeep Calm"); case 128>>3>>2>>9 :
 printf("\\nGet Lost");
 }
 }

  1. ByeHelloKeep CalmGet Lost

  2. HelloKeep CalmGet Lost

  3. Keep CalmGet Lost

  4. Get Lost

  5. Blank screen

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

The value of variable 'i', after evaluating the expression, would be (128 / (2^3) / (2^2) / (2^2)) = 1. So, the switch case would become switch(1). Now the case expressions will be solved and the case having value 1 will be executed. None of the cases has value 1; so no output will be printed on the screen. So, this answer is true.