Multiple choice

What will be the output of the following code snippet? main() {
clrscr();
char ch[]=Hello;
switch(ch) { case world: printf(World);
break;
case Hello: printf(Hello); break; default: printf(default.);
}
getch(); }

  1. Compilation error: switch selection expression must be of integral type

  2. Hello

  3. Compilation error: constant expression required

  4. Compilation error: duplicate case

  5. Options 1,3 and 4

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

All the three errors occurred.