Multiple choice

What is the output of the given code?

int main()
 {
 switch(printf("%d\\n",pow(128>>3>>2>>1,3))); case 56/4 :
printf("Hello"); case 32/4 : Printf("Bye"); case 0/9 :
Printf("Good"); case 0/1 : Printf("Bad");
 }

  1. HelloByeGoodBad

  2. ByeGoodBad

  3. GoodBad

  4. Bad

  5. Compiler error

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

There is an error in the code because we have put a semicolon after the switch() statement which is invalid. The compiler will raise an error “case label not with a switch statement”. So, this answer is correct.